Function at 0x467030
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xa0
mov eax, dword [esp + 0xa8]
push ebx
push ebp
push esi
movsx ebx, ax
shr eax, 0x10
push edi
movsx ebp, ax
mov esi, ecx
mov ecx, dword [esi + 0xb8]
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x4c], eax
add eax, 0xffffffef
mov dword [esp + 0x44], edx
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x124]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x50], ecx
jne 0x467394
push ebp
push ebx
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x467125
mov ecx, esi
call fcn.00450360
lea edi, [esi + 0x204]
mov dword [esp + 0x10], 3
jmp 0x4670c0
push ebp
push ebx
lea eax, [edi - 0xdc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
neg eax
mov dword [edi], eax
mov eax, dword [esp + 0x10]
add edi, 0xe0
dec eax
mov dword [esp + 0x10], eax
jne 0x4670c0
mov edx, dword [esi + 0xb8]
push 1
lea ecx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xb4]
push eax
push ecx
push 0x201
mov ecx, esi
call fcn.0048b950
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret 8
mov eax, dword [esi + 0xb8]
lea edx, [esp + 0x64]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [0x4c0bd4]
mov edx, dword [esi + 0xb8]
push edi
push ecx
push edi
push edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0x80]
push edi
push edi
push eax
push ecx
push 0x94800000
push str.MonthCal32
push 0x4a8c18
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
lea edx, [esp + 0x14]
push edx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi + 0x124], eax
mov eax, dword [esi + 0xb8]
push 0x1001
push eax
call edi
push 0xfffffd0e
mov ecx, esi
call fcn.00466fc0
mov edx, dword [esi + 0x124]
lea ecx, [esp + 0x14]
push ecx
xor ebp, ebp
push ebp
push 0x1002
push edx
call edi
mov ecx, dword [esi + 0x124]
lea eax, [esp + 0x24]
push eax
push ebp
push 0x1009
push ecx
call edi
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x70]
sub edx, eax
mov eax, dword [esp + 0x2c]
push 1
push edx
sub eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x6c]
push eax
mov eax, dword [esi + 0x124]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ebx, dword [sym.imp.USER32.dll_ScreenToClient]
lea esp, [esp]
push ebp
push ebp
push ebp
lea ecx, [esp + 0x80]
push ecx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x467210
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x98], eax
mov eax, dword [esi + 0x124]
cmp edx, eax
mov dword [esp + 0x90], 0x20
jne 0x467348
lea ecx, [esp + 0x74]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [esp + 0x78], 0x202
jne 0x467210
mov eax, dword [esi + 0x124]
lea edx, [esp + 0x94]
push edx
push eax
call ebx
mov edx, dword [esi + 0x124]
lea ecx, [esp + 0x90]
push ecx
push ebp
push 0x100e
push edx
call edi
cmp eax, 0x20001
jne 0x467210
mov eax, dword [esi + 0x124]
xor ecx, ecx
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0x18], ecx
push ebp
mov dword [esp + 0x20], ecx
push 0x1001
mov dword [esp + 0x28], ecx
push eax
mov dword [esp + 0x30], ecx
call edi
mov dx, word [esp + 0x58]
mov cx, word [esp + 0x5a]
mov ax, word [esp + 0x56]
mov word [esp + 0x18], dx
mov edx, dword [esi + 0x124]
mov word [esp + 0x1a], cx
mov cx, word [esp + 0x54]
push edx
mov word [esp + 0x1a], ax
mov word [esp + 0x18], cx
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0xfffffd0f
mov ecx, esi
mov dword [esi + 0x124], ebp
call fcn.00466fc0
mov ecx, dword [esi + 0xb8]
lea eax, [esp + 0x14]
push eax
push ebp
push 0x1002
push ecx
call edi
mov edx, dword [esi + 0xb8]
push ebp
push ebp
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xa0
ret 8
mov ecx, dword [esp + 0x78]
cmp ecx, 0xa1
je 0x46735c
cmp ecx, 0x201
jne 0x467368
cmp edx, dword [esi + 0xb8]
jne 0x467378
cmp eax, ebp
jne 0x467381
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x467210
mov eax, dword [esi + 0x124]
push eax
jmp 0x467388
mov ecx, dword [esi + 0x124]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 0x124], ebp
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xa0
ret 8