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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x492328
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x4bb028]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], edi
lea esi, [edi + 0x3a0]
xor ebx, ebx
cmp esi, ebx
je 0x40255d
cmp dword [esi + 0x20], ebx
je 0x40255d
mov eax, dword [esi]
mov edx, dword [eax + 0x178]
push 1
mov ecx, esi
call edx
mov ebx, dword [ebp + 8]
push 1
call fcn.0045f8a0
xor ebx, ebx
mov ecx, dword [ebp + 8]
mov esi, edi
call fcn.00401f10
mov eax, dword [edi + 0x350]
sub esp, 0x48
mov esi, esp
mov dword [esi], eax
mov ecx, dword [edi + 0x354]
mov dword [esp + 0x68], esp
push 0x401dc0
mov dword [esi + 4], ecx
mov edx, dword [edi + 0x358]
push 0x402b40
mov dword [esi + 8], edx
mov eax, dword [edi + 0x35c]
push 2
push 0x18
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x360]
lea edx, [edi + 0x364]
push edx
lea eax, [esi + 0x14]
push eax
mov dword [esi + 0x10], ecx
call fcn.0048a57e
mov edx, dword [ebp + 8]
mov ecx, dword [edi + 0x394]
push edx
push edi
mov dword [esi + 0x44], ecx
call fcn.00402080
mov esi, dword [edi + 0x308]
cmp esi, dword [edi + 0x30c]
jbe 0x4025e1
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov dword [esp + 0x28], esi
mov ecx, edi
mov edi, dword [ecx + 0x2fc]
add esi, 0x44
mov dword [esp + 0x18], esi
jmp 0x402600
mov esi, dword [ecx + 0x30c]
cmp dword [ecx + 0x308], esi
jbe 0x402618
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x2fc]
cmp edi, ebx
je 0x402626
cmp edi, eax
je 0x402630
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x28], esi
je 0x402925
push 0x4bc760
mov dword [esp + 0x40], vtable.ATL::CImage.0
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov byte [esp + 0x5c], bl
mov byte [esp + 0x5d], bl
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [0x4bc778]
push 0x4bc760
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x78], ebx
cmp edi, ebx
jne 0x4027b7
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov ecx, dword [esp + 0x28]
cmp ecx, dword [eax + 0x10]
jb 0x4026b5
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x18]
mov eax, dword [esi]
push eax
lea edx, [esp + 0x40]
push edx
call fcn.004016b0
cmp dword [esp + 0x40], ebx
je 0x4027d0
lea ebx, [esp + 0x3c]
call fcn.00424c80
fld qword [0x4bca28]
mov eax, dword [esp + 0x4c]
fstp qword [esp + 0x2c]
mov ecx, dword [esp + 0x48]
fld qword [0x4bca20]
fstp qword [esp + 0x34]
mov ebx, eax
mov esi, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
test edi, edi
jne 0x4027be
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov ecx, dword [esp + 0x28]
cmp ecx, dword [eax + 0x10]
jb 0x402720
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
test edi, edi
jne 0x4027c5
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov edx, dword [esp + 0x28]
cmp edx, dword [eax + 0x10]
jb 0x40273f
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
fild dword [esp + 0x1c]
push 0xff
push ebx
push esi
fmul qword [esp + 0x38]
push 0
push 0
call fcn.0048b190
fild dword [esp + 0x34]
push eax
fmul qword [esp + 0x4c]
call fcn.0048b190
push eax
mov eax, dword [esp + 0x34]
mov ecx, dword [eax - 0x3c]
mov edx, dword [eax - 0x40]
mov eax, dword [ebp + 8]
push ecx
push edx
call fcn.004065f0
push eax
lea esi, [esp + 0x64]
call fcn.004014d0
test edi, edi
jne 0x4027cc
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov ecx, dword [esp + 0x28]
cmp ecx, dword [eax + 0x10]
jb 0x40279f
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
push eax
push 0x498498
call fcn.0045b4f0
add esp, 8
xor ebx, ebx
jmp 0x4027ff
mov eax, dword [edi]
jmp 0x4026a6
mov eax, dword [edi]
jmp 0x402711
mov eax, dword [edi]
jmp 0x402730
mov eax, dword [edi]
jmp 0x402790
cmp edi, ebx
jne 0x40290c
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov ecx, dword [esp + 0x28]
cmp ecx, dword [eax + 0x10]
jb 0x4027ef
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esi]
push edx
push str.FALSE__s
call fcn.0045b4f0
add esp, 8
cmp edi, ebx
jne 0x402913
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov esi, dword [esp + 0x28]
cmp esi, dword [eax + 0x10]
jb 0x40281e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x18]
cmp dword [eax + 4], ebx
je 0x402851
cmp edi, ebx
jne 0x40291a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x402842
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x18]
mov ecx, dword [ebp + 8]
mov esi, dword [edx + 4]
call fcn.00455f50
or ecx, 0xffffffff
mov dword [esp + 0x78], ecx
mov eax, dword [esp + 0x40]
mov dword [esp + 0x3c], vtable.ATL::CImage.0
cmp eax, ebx
je 0x402893
push eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x60], ecx
mov byte [esp + 0x5d], bl
mov byte [esp + 0x5c], bl
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x4bc760
call esi
sub dword [0x4bc778], 1
jne 0x4028d0
push 0x4bc760
call esi
mov eax, dword [0x4bc75c]
cmp eax, ebx
je 0x4028bf
push eax
call sub.gdiplus.dll_GdiplusShutdown
push 0x4bc760
mov dword [0x4bc75c], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x4bc760
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, ebx
jne 0x402921
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov ecx, dword [esp + 0x28]
cmp ecx, dword [eax + 0x10]
jb 0x4028f6
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x14]
mov eax, 0x58
add dword [esp + 0x28], eax
add dword [esp + 0x18], eax
jmp 0x402600
mov eax, dword [edi]
jmp 0x4027e0
mov eax, dword [edi]
jmp 0x40280f
mov eax, dword [edi]
jmp 0x402837
mov eax, dword [edi]
jmp 0x4028e7
mov edx, dword [ecx]
mov eax, dword [edx + 0x174]
call eax
test eax, eax
je 0x402b08
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x308]
cmp esi, dword [edi + 0x30c]
jbe 0x40294f
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edi, dword [edi + 0x2fc]
mov dword [esp + 0x28], esi
lea esp, [esp]
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x30c]
mov dword [esp + 0x20], eax
cmp dword [esi + 0x308], eax
jbe 0x40297c
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0x2fc]
cmp edi, ebx
je 0x40298a
cmp edi, eax
je 0x402990
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x28], ecx
je 0x402a19
cmp edi, ebx
jne 0x402a0d
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov edx, dword [esp + 0x28]
cmp edx, dword [eax + 0x10]
jb 0x4029b5
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x48], ebx
je 0x4029e8
cmp edi, ebx
jne 0x402a11
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov ecx, dword [esp + 0x28]
cmp ecx, dword [eax + 0x10]
jb 0x4029d9
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x28]
mov ecx, dword [ebp + 8]
mov esi, dword [edx + 0x48]
call fcn.00455f50
cmp edi, ebx
jne 0x402a15
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov ecx, dword [esp + 0x28]
cmp ecx, dword [eax + 0x10]
jb 0x402a03
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
add dword [esp + 0x28], 0x58
jmp 0x402960
mov eax, dword [edi]
jmp 0x4029a6
mov eax, dword [edi]
jmp 0x4029ca
mov eax, dword [edi]
jmp 0x4029f4
mov esi, dword [esi + 0x320]
mov edi, dword [esp + 0x14]
cmp esi, dword [edi + 0x324]
jbe 0x402a31
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edi, dword [edi + 0x314]
mov dword [esp + 0x28], esi
jmp 0x402a40
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x324]
mov dword [esp + 0x20], eax
cmp dword [esi + 0x320], eax
jbe 0x402a5c
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0x314]
cmp edi, ebx
je 0x402a6a
cmp edi, eax
je 0x402a70
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x28], edx
je 0x402af9
cmp edi, ebx
jne 0x402aed
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov ecx, dword [esp + 0x28]
cmp ecx, dword [eax + 0x10]
jb 0x402a95
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x28]
cmp dword [edx + 0x18], ebx
je 0x402ac8
cmp edi, ebx
jne 0x402af1
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov ecx, dword [esp + 0x28]
cmp ecx, dword [eax + 0x10]
jb 0x402ab9
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x28]
mov ecx, dword [ebp + 8]
mov esi, dword [edx + 0x18]
call fcn.004662b0
cmp edi, ebx
jne 0x402af5
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov ecx, dword [esp + 0x28]
cmp ecx, dword [eax + 0x10]
jb 0x402ae3
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
add dword [esp + 0x28], 0x20
jmp 0x402a40
mov eax, dword [edi]
jmp 0x402a86
mov eax, dword [edi]
jmp 0x402aaa
mov eax, dword [edi]
jmp 0x402ad4
mov edx, dword [esi]
mov eax, dword [edx + 0x178]
push ebx
mov ecx, esi
call eax
jmp 0x402b0c
mov esi, dword [esp + 0x14]
cmp dword [0x4bb41c], ebx
je 0x402b28
push ebx
push 0x2000000
push ebx
mov ecx, esi
mov dword [0x4bb41c], ebx
call sub.mfc90u.dll_CWnd::ModifyStyle
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4