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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x30], edx
push edi
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov ebx, dword [edi + 4]
mov dword [ebp - 0x2c], ebx
mov eax, dword [ebx + 0x58]
mov dword [ebp - 0xc], eax
test esi, esi
jne 0x4035a0
mov eax, dword [0x56be3c]
cmp byte [eax + 0xa0], 0
je 0x4035b3
push esi
push dword [edi]
call fcn.0048aee0
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
je 0x4035ae
cmp dword [esi + 0x3c], 0
lea ecx, [esi + 0x34]
je 0x403572
cmp dword [ecx + 0xc], 0
jne 0x40359b
mov edx, dword [0x56be3c]
mov eax, dword [edx + 0xd0]
mov dword [ecx], eax
mov eax, dword [edx + 0xd4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 0xd8]
mov dword [ecx + 8], eax
mov eax, dword [edx + 0xdc]
mov dword [ecx + 0xc], eax
call fcn.00462040
xor eax, eax
cmp byte [esi + 0x14], al
setne al
dec eax
and esi, eax
mov dword [ebp + 8], esi
mov eax, dword [0x56be3c]
fld dword [eax + 0x114]
mov edx, dword [eax + 0x110]
mov cl, byte [eax + 0xe0]
mov eax, dword [eax + 0xcc]
cmp eax, 3
fstp dword [ebp - 0x24]
fld qword [0x55ddd8]
sete byte [ebp - 6]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x34], 0
mov byte [ebp - 5], cl
mov dword [ebp - 0x20], 1
fst qword [ebp - 0x54]
fstp qword [ebp - 0x4c]
cmp eax, 2
je 0x403606
cmp eax, 3
jne 0x40360d
mov dword [ebp - 0x20], 3
test esi, esi
je 0x403672
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0x10], eax
call fcn.00482510
mov ecx, dword [esi + 0x30]
cmp ecx, 3
mov dword [ebp - 0x28], eax
sete byte [ebp - 6]
cmp ecx, 1
jne 0x403636
mov dword [ebp - 0x20], ecx
jmp 0x403655
cmp ecx, 2
je 0x40364e
cmp ecx, 3
je 0x40364e
cmp ecx, 4
jne 0x403655
mov dword [ebp - 0x20], 6
jmp 0x403655
mov dword [ebp - 0x20], 3
cmp dword [ebx], 0
mov cl, byte [esi + 0x44]
mov byte [ebp - 5], cl
je 0x403672
cmp dword [ebx + 0x308], 0
je 0x403672
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0xd]
mov byte [ebp - 5], al
mov edi, dword [edi + 4]
mov eax, dword [edi + 0x34c]
test eax, eax
je 0x40368f
push 0xffffffffffffffff
push eax
mov byte [edi + 0x350], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0xc]
mov ecx, ebx
mov eax, dword [ebp - 0x30]
mov byte [edi + 0x350], 0
mov edi, dword [ebx]
mov dword [edx + 4], eax
mov dword [ebp - 0x18], edi
mov dword [ebx], eax
call fcn.0046c190
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4036c0
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x10], 0
mov ecx, dword [ebx + 0x358]
test ecx, ecx
je 0x4036d7
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebx]
mov dword [ebx + 0x358], 0
test ecx, ecx
je 0x4039af
mov eax, dword [ecx]
call dword [eax + 0x78]
mov ecx, dword [ebx]
test eax, eax
je 0x4038c5
test ecx, ecx
je 0x403708
mov eax, dword [ecx]
call dword [eax + 0x78]
mov dword [ebp - 0x14], eax
jmp 0x40370f
mov dword [ebp - 0x14], 0
mov eax, dword [0x56be3c]
mov eax, dword [eax + 0x9c]
mov dword [ebp - 0x30], eax
test eax, eax
jg 0x403751
mov ebx, dword [ebx + 0x5c]
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 0x58
push edi
call esi
push 0x5a
push edi
mov dword [ebp - 0x30], eax
call esi
push edi
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x3c]
mov ecx, ebx
push eax
call fcn.00467630
mov ecx, dword [ebp - 0x14]
push dword [eax + 4]
push dword [eax]
push dword [ebp - 0x30]
push dword [ebp - 0x10]
push dword [ebp - 0x28]
call fcn.00479370
mov edx, dword [ebp - 0xc]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x403798
mov eax, dword [ecx]
call dword [eax + 0x78]
test eax, eax
je 0x403798
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0x78]
mov eax, dword [eax + 8]
cmp eax, 6
je 0x4037be
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x4037d8
mov eax, dword [ecx]
call dword [eax + 0x78]
test eax, eax
je 0x4037d8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0x78]
mov eax, dword [eax + 8]
cmp eax, 5
jne 0x4037d8
test esi, esi
je 0x4037c7
mov cl, byte [esi + 0x4c]
jmp 0x4037cf
mov eax, dword [0x56be3c]
mov cl, byte [eax + 0x60]
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x80], cl
test edi, edi
je 0x40382a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x78]
test eax, eax
je 0x40382a
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi]
mov ecx, edi
mov esi, eax
call dword [edx + 4]
mov edx, esi
mov ecx, eax
call fcn.00419570
test al, al
je 0x40382a
mov edi, dword [ebp - 0x18]
mov ecx, edi
mov esi, dword [ebp - 0x14]
push esi
mov eax, dword [edi]
call dword [eax + 0x78]
push eax
call fcn.0046ec60
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x78]
push eax
mov ecx, esi
call fcn.0047cb80
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx]
call fcn.0042c580
mov ecx, dword [ebp - 0x14]
push eax
mov dword [ecx + 0xc], eax
mov byte [ecx + 0x10], 0
mov ecx, dword [ecx + 0x28]
mov edx, dword [ecx]
call dword [edx + 0x48]
mov ecx, dword [ebx + 0x4a4]
test ecx, ecx
je 0x403859
push dword [ebp - 0x14]
call fcn.0042a510
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x403869
mov eax, dword [ecx]
push 1
call dword [eax]
test esi, esi
je 0x403a3f
fld dword [0x55ddc0]
push ecx
mov ecx, dword [esi + 0x28]
fstp dword [esp]
call fcn.00482740
mov ecx, dword [ebx]
add esp, 4
mov edi, dword [ebp - 0x10]
fstp dword [ebp - 0x24]
mov eax, dword [ecx]
push edi
mov eax, dword [eax + 0x64]
call eax
fld dword [ebp - 0x24]
test al, al
je 0x4039b6
fld qword [0x55ddf0]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4039e2
fild dword [esi + 0x1c]
fstp qword [ebp - 0x54]
fild dword [esi + 0x20]
fstp qword [ebp - 0x4c]
jmp 0x4039e2
test ecx, ecx
je 0x40385c
mov eax, dword [ecx]
call dword [eax + 0x7c]
mov ecx, dword [ebx]
test eax, eax
je 0x403935
test ecx, ecx
je 0x4038df
mov eax, dword [ecx]
call dword [eax + 0x7c]
jmp 0x4038e1
xor eax, eax
push dword [ebx + 0x60]
mov ecx, eax
call fcn.0047dc30
mov ecx, dword [ebx]
push 0
push dword [ebp - 0x28]
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
cmp edx, 1
jge 0x40391d
mov ecx, dword [ebx]
mov edx, 1
push 0
push edx
mov dword [ebp - 0x10], edx
mov eax, dword [ecx]
call dword [eax + 0x18]
jmp 0x40385c
cmp edx, eax
jle 0x403923
mov edx, eax
mov ecx, dword [ebx]
push 0
push edx
mov dword [ebp - 0x10], edx
mov eax, dword [ecx]
call dword [eax + 0x18]
jmp 0x40385c
test ecx, ecx
je 0x40385c
mov eax, dword [ecx]
call dword [eax + 0x80]
test eax, eax
je 0x40385c
test edi, edi
je 0x403869
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
test eax, eax
je 0x40385c
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi]
mov ecx, edi
mov esi, eax
call dword [edx + 4]
mov edx, esi
mov ecx, eax
call fcn.00419570
test al, al
je 0x403859
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0x80]
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x80]
mov ecx, eax
call fcn.00487750
jmp 0x403859
xor esi, esi
jmp 0x40385c
mov ecx, dword [ebx]
fstp st(0)
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
jle 0x4039e2
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0xc]
cmp edi, 1
jge 0x4039d8
mov dword [ebp - 0x10], 1
jmp 0x4039e2
mov dword [ebp - 0x10], eax
cmp edi, eax
jg 0x4039e2
mov dword [ebp - 0x10], edi
mov eax, dword [esi + 0x2c]
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
add edi, 0x14
mov eax, dword [esi + 0x54]
mov dword [ebp + 8], eax
cmp edi, eax
je 0x403a3f
push dword [eax + 4]
mov ecx, edi
call fcn.0040c470
test al, al
jne 0x403a0a
xor eax, eax
mov byte [eax], al
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [edi], eax
shl eax, 2
push eax
push dword [ecx + 0xc]
push dword [edi + 0xc]
call fcn.004e0070
mov ecx, dword [edi]
add esp, 0xc
mov eax, dword [edi + 4]
sub eax, ecx
shl eax, 2
push eax
mov eax, dword [edi + 0xc]
push 0
lea eax, [eax + ecx*4]
push eax
call fcn.004bef30
add esp, 0xc
mov ecx, dword [ebx]
test ecx, ecx
je 0x403a82
mov eax, dword [ecx]
call dword [eax + 0x78]
mov ecx, dword [ebx]
test eax, eax
je 0x403a70
test ecx, ecx
je 0x403a5b
mov eax, dword [ecx]
call dword [eax + 0x78]
jmp 0x403a5d
xor eax, eax
push dword [ebp - 0x34]
fld dword [ebp - 0x24]
push ecx
mov ecx, eax
fstp dword [esp]
call fcn.0047a050
jmp 0x403a82
test ecx, ecx
je 0x403a82
mov eax, dword [ecx]
fld dword [ebp - 0x24]
push 0
push ecx
fstp dword [esp]
call dword [eax + 0x30]
mov edi, dword [ebp - 0x1c]
cmp byte [edi + 0xa], 0
jne 0x403ace
cmp dword [ebx], 0
je 0x403ace
push 0
push 0
push dword [ebx + 0x60]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [ebx]
test ecx, ecx
je 0x403ace
mov eax, dword [ecx]
call dword [eax + 0x80]
test eax, eax
je 0x403ace
mov ecx, dword [ebx]
test ecx, ecx
je 0x403abf
mov eax, dword [ecx]
call dword [eax + 0x80]
jmp 0x403ac1
xor eax, eax
mov eax, dword [eax + 8]
mov eax, dword [eax + 4]
mov byte [eax + 0x99], 1
mov ecx, dword [ebp - 0xc]
xor dl, dl
call fcn.00403300
mov ecx, ebx
call fcn.00403410
mov ecx, dword [ebx]
test ecx, ecx
je 0x403b1c
mov eax, dword [ecx]
call dword [eax + 0x80]
test eax, eax
je 0x403b1c
test esi, esi
je 0x403afa
mov edi, dword [esi + 0x50]
jmp 0x403afc
xor edi, edi
mov ecx, dword [ebx]
test ecx, ecx
je 0x403b0c
mov eax, dword [ecx]
call dword [eax + 0x80]
jmp 0x403b0e
xor eax, eax
push dword [ebp - 0x28]
mov ecx, eax
push edi
call fcn.004866e0
mov edi, dword [ebp - 0x1c]
mov eax, dword [0x5689b8]
shr eax, 1
test al, 1
je 0x403bb1
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x403bb1
mov eax, dword [ecx]
call dword [eax + 0x78]
test eax, eax
je 0x403bb1
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0x78]
mov eax, dword [eax + 8]
cmp eax, 1
jne 0x403bb1
mov ecx, dword [ebx]
test ecx, ecx
je 0x403b7a
mov eax, dword [ecx]
call dword [eax + 0x78]
test eax, eax
je 0x403b6b
mov ecx, dword [ebx]
test ecx, ecx
je 0x403b7a
mov eax, dword [ecx]
call dword [eax + 0x78]
mov ecx, dword [ebx]
test ecx, ecx
je 0x403b7a
mov eax, dword [ecx]
call dword [eax + 0x78]
mov edi, eax
jmp 0x403b7c
xor edi, edi
mov ecx, dword [ebx]
test ecx, ecx
je 0x403b8b
mov eax, dword [ecx]
call dword [eax + 0x78]
mov edx, eax
jmp 0x403b8d
xor edx, edx
mov edx, dword [edx + 0x28]
lea eax, [edi + 0x14]
mov edi, dword [ebp - 0x1c]
push eax
mov ecx, dword [edi]
call fcn.004894a0
add esp, 4
test eax, eax
jne 0x403bb1
mov eax, dword [0x56be3c]
mov byte [eax + 0xc0], 1
mov al, byte [edi + 0xa]
test al, al
jne 0x403bd1
cmp byte [edi + 0xb], al
je 0x403ca1
test esi, esi
je 0x403ca1
test al, al
je 0x403c86
test esi, esi
je 0x403c86
cmp dword [esi + 0x3c], 0
je 0x403c86
cmp dword [esi + 0x40], 0
je 0x403c86
mov eax, dword [esi + 0x38]
sub esp, 0x10
mov edi, dword [esi + 0x34]
mov ecx, esp
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x3c]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x28], eax
mov eax, edi
mov dword [ecx], eax
mov eax, dword [esi + 0x38]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x3c]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x40]
mov dword [ecx + 0xc], eax
lea ecx, [ebp - 0x44]
call fcn.004173d0
mov eax, dword [ebp - 0x28]
add esp, 0x10
mov ecx, dword [ebp - 0x34]
add eax, ecx
mov edx, dword [ebp - 0x40]
cmp eax, edx
jle 0x403c4a
mov esi, dword [ebp - 0x38]
lea eax, [esi + edx]
cmp ecx, eax
jl 0x403c4c
mov ecx, esi
sub ecx, dword [ebp - 0x28]
add ecx, edx
jmp 0x403c4c
mov ecx, edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x44]
add eax, edi
cmp eax, edx
jle 0x403c6d
mov esi, dword [ebp - 0x3c]
lea eax, [esi + edx]
cmp edi, eax
mov eax, dword [ebp + 8]
jl 0x403c72
mov edi, esi
sub edi, eax
add edi, edx
jmp 0x403c72
mov eax, dword [ebp + 8]
mov edi, edx
push 1
push dword [ebp - 0x28]
push eax
push ecx
push edi
push dword [ebx + 0x5c]
call dword [sym.imp.USER32.dll_MoveWindow]
mov edi, dword [ebp - 0x1c]
cmp byte [edi + 8], 0
je 0x403c98
push dword [ebp - 0x20]
push dword [ebx + 0x5c]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 0x5c]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [0x56be3c]
mov ecx, ebx
mov dl, byte [ebp - 5]
movzx eax, byte [eax + 0xa9]
push eax
call fcn.0040a880
mov esi, dword [ebp - 0x10]
add esp, 4
cmp byte [edi + 8], 0
jne 0x403cc9
cmp esi, 1
je 0x403d15
mov ecx, dword [ebx]
test ecx, ecx
je 0x403d15
mov eax, dword [ecx]
call dword [eax + 0x78]
test eax, eax
je 0x403d15
mov ecx, dword [ebx]
test ecx, ecx
je 0x403ce7
mov eax, dword [ecx]
call dword [eax + 0x78]
mov edx, eax
jmp 0x403ce9
xor edx, edx
mov eax, dword [ebp - 0x58]
sub esp, 0x18
mov ecx, esp
mov dword [ecx], esi
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x54]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x50]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x4c]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x48]
mov dword [ecx + 0x14], eax
mov ecx, edx
call fcn.0047c8b0
push 0
push 0
push dword [ebx + 0x60]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [ebx]
test ecx, ecx
je 0x403d53
mov eax, dword [ecx]
call dword [eax + 0x80]
test eax, eax
je 0x403d53
mov ecx, dword [ebx]
test ecx, ecx
je 0x403d44
mov eax, dword [ecx]
call dword [eax + 0x80]
jmp 0x403d46
xor eax, eax
mov eax, dword [eax + 8]
mov eax, dword [eax + 4]
mov byte [eax + 0x99], 1
push dword [ebx + 0x60]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, ebx
call fcn.00466440
mov ecx, dword [ebx]
test ecx, ecx
je 0x403e32
mov eax, dword [ecx]
push 7
call dword [eax + 0x10]
mov esi, eax
test esi, esi
je 0x403dec
push esi
mov ecx, str.This_document_uses_unsupported_features___s__and_might_not_render_properly
call fcn.00489000
push eax
call fcn.00419f30
push esi
mov ebx, eax
call fcn.004bf8aa
add esp, 0xc
mov esi, ebx
push 0x30
call fcn.004bcd25
mov edx, dword [ebp - 0x2c]
mov edi, eax
add esp, 4
fld1
mov ecx, dword [edx + 0x340]
mov edx, dword [edx + 0x60]
push ebx
mov dword [edi + 0x14], ecx
mov ecx, edi
push edx
fstp dword [edi + 0x2c]
mov dword [edi], 0x4f4ff8
mov word [edi + 8], 0x100
mov byte [edi + 0x10], 1
mov dword [edi + 0x24], 0
call fcn.00484120
mov ebx, dword [ebp - 0x2c]
push 3
push edi
mov ecx, dword [ebx + 0x340]
call fcn.00484f20
mov edi, dword [ebp - 0x1c]
cmp byte [edi + 0xa], 0
jne 0x403df8
cmp byte [edi + 0xb], 0
je 0x403e0d
cmp byte [edi + 8], 0
je 0x403e0d
cmp byte [ebp - 6], 0
je 0x403e0d
xor dl, dl
mov ecx, ebx
call fcn.00409440
cmp byte [edi + 0xa], 0
jne 0x403e29
cmp dword [ebx + 0x308], 0
je 0x403e29
mov ecx, dword [ebx]
test ecx, ecx
je 0x403e29
mov eax, dword [ecx]
push 1
call dword [eax + 0x2c]
push esi
call fcn.004bf8aa
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret