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

Disassembly:
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x74]
mov ebx, dword [eax]
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov ebp, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x84], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x80]
mov esi, dword [eax + 4]
test esi, esi
je 0x6378b6
mov ecx, dword [eax + 8]
sub ecx, esi
mov eax, 0xe6c2b449
imul ecx
add edx, ecx
mov ecx, dword [esp + 0x84]
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jae 0x6378b6
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + ecx + 0x100]
add esi, ecx
mov edx, eax
shr edx, 0x10
movzx ecx, dl
mov edx, eax
mov dword [esp + 0x18], ecx
shr edx, 8
movzx ecx, dl
fild dword [esp + 0x18]
mov dword [esp + 0x18], ecx
fmul dword [0x7004d4]
movzx edx, al
fstp dword [esp + 0x2c]
mov ecx, dword [esp + 0x2c]
fild dword [esp + 0x18]
mov dword [esp + 0x18], edx
shr eax, 0x18
fmul dword [0x7004d4]
fstp dword [esp + 0x30]
mov edx, dword [esp + 0x30]
fild dword [esp + 0x18]
mov dword [esp + 0x18], eax
lea eax, [ebx + 0x64]
mov dword [eax], ecx
fmul dword [0x7004d4]
mov dword [eax + 4], edx
fstp dword [esp + 0x34]
mov ecx, dword [esp + 0x34]
fild dword [esp + 0x18]
mov dword [eax + 8], ecx
fmul dword [0x7004d4]
fstp dword [esp + 0x38]
mov edx, dword [esp + 0x38]
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0x108]
mov dword [ebx + 0xc], eax
cmp dword [esi + 0x104], 0xffffffff
jne 0x6375af
mov ebx, dword [edi + 0xe4]
sub ebx, dword [edi + 0xdc]
jmp 0x6375ca
mov ecx, dword [0x77ff08]
mov eax, dword [edi + 0x44]
mov edx, dword [ecx]
push eax
call dword [edx + 0xb4]
mov ebx, eax
imul ebx, dword [esi + 0x104]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x48]
mov edx, ebp
mov dword [esp + 0x28], eax
lea eax, [edx + ebx]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov ebp, dword [esi + 0x10c]
test ebp, ebp
mov dword [esp + 0x3c], eax
je 0x6376e7
mov ecx, ebp
mov edx, dword [ecx]
push 0
call dword [edx]
movzx eax, word [eax + 0x22]
mov ebp, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov ecx, dword [esi + 0x108]
sub eax, ebp
add eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x18], eax
xor eax, eax
dec ecx
je 0x637644
dec ecx
jne 0x63765b
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
push 0
call dword [eax]
movzx eax, word [eax + 0x20]
sub eax, ebx
jmp 0x63765b
mov ecx, dword [esi + 0x10c]
mov edx, dword [ecx]
push 0
call dword [edx]
movzx eax, word [eax + 0x20]
sub eax, ebx
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [edi + 0x6c]
mov edx, dword [ecx + 0x1d4]
mov ebp, dword [ecx + 0x25c]
mov ebx, dword [ecx + 0x260]
add ebp, edx
mov edx, dword [esp + 0x1c]
sub ebp, eax
mov eax, dword [ecx + 0x1d8]
mov ecx, dword [esp + 0x20]
add ebx, eax
mov al, byte [edi + 0xa8]
add ebp, edx
sub ebx, dword [esp + 0x18]
add ebx, ecx
test al, 0x10
je 0x6376a6
mov ecx, dword [edi + 0x284]
mov eax, dword [edi + 0x288]
sub ebp, ecx
sub ebx, eax
call sub.WINMM.dll_timeGetTime
mov ecx, dword [esi + 0x10c]
mov si, word [ecx + 0xa]
test si, si
je 0x637891
xor edx, edx
cmp si, 1
je 0x6376d0
div dword [ecx + 0xc]
movzx esi, si
xor edx, edx
div esi
mov eax, dword [ecx]
push edx
call dword [eax]
mov edx, dword [eax]
push 0
push 0xffffffffffffffff
push ebx
push ebp
mov ecx, eax
call dword [edx + 0xc]
jmp 0x637891
mov bl, byte [esi + 0x110]
test bl, bl
je 0x637788
mov ebx, dword [edi + 0x27c]
test ebx, ebx
je 0x637788
mov ecx, ebx
mov eax, dword [ecx]
call dword [eax + 0x58]
test al, al
je 0x63777c
mov eax, dword [edi + 0x280]
test eax, eax
je 0x63777c
cmp eax, esi
jne 0x63777c
mov eax, dword [edi + 0x27c]
add eax, 0xac
mov ecx, dword [eax]
mov dword [esp + 0x4c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x50], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x54], ecx
mov edx, dword [eax + 0xc]
test byte [edi + 0xa8], 0x10
mov dword [esp + 0x58], edx
je 0x637768
mov eax, dword [edi + 0x288]
mov ecx, dword [edi + 0x284]
neg eax
push eax
neg ecx
push ecx
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [edi + 0x6c]
push 0xffffffffffffffff
lea eax, [esp + 0x50]
push eax
call fcn.00614240
jmp 0x637891
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esi + 0x114]
test ebx, ebx
je 0x637854
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x28]
sub eax, ecx
mov dword [esp + 0x5c], edx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov dword [esp + 0x68], eax
test byte [edi + 0xa8], 0x10
mov dword [esp + 0x60], ecx
je 0x6377d9
mov ecx, dword [edi + 0x288]
mov edx, dword [edi + 0x284]
neg ecx
push ecx
neg edx
push edx
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ebp, dword [esp + 0x14]
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x64]
push ecx
mov ecx, dword [edi + 0x6c]
push ebp
push esi
call fcn.00614b50
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, ecx
sub eax, ebx
mov dword [esp + 0x6c], edx
cdq
sub eax, edx
sar eax, 1
add eax, ebx
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x74], eax
test byte [edi + 0xa8], 0x10
mov dword [esp + 0x78], ecx
je 0x637841
mov ecx, dword [edi + 0x288]
mov edx, dword [edi + 0x284]
neg ecx
push ecx
neg edx
push edx
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [esi + 0x114]
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x74]
push ecx
push ebp
push edx
jmp 0x637889
test byte [edi + 0xa8], 0x10
je 0x63787a
mov eax, dword [edi + 0x288]
mov ecx, dword [edi + 0x284]
neg eax
push eax
neg ecx
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x24]
push eax
push ecx
push esi
mov ecx, dword [edi + 0x6c]
call fcn.00614b50
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x84], ecx
add eax, 0x11c
jmp 0x6374c9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 8