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

Disassembly:
push 0xffffffffffffffff
push 0x4f25ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x48]
push ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x80], ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [esp + 0x150]
push 0
push 0
push 0
push 0
push eax
mov dword [esp + 0x14c], 0
call dword [sym.imp.USER32.dll_SetRect]
mov edi, dword [esp + 0x140]
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
lea edx, [ecx*8]
cmp dword [esi + 0xe0], edx
lea ebp, [eax*8]
jne 0x47eaa9
cmp dword [esi + 0xe4], ebp
jne 0x47eaa9
mov edx, dword [edi + 0x14]
test edx, edx
jne 0x47eab2
push eax
push ecx
mov ecx, esi
call fcn.0047a250
mov edx, dword [esp + 0x14c]
mov eax, dword [esp + 0x148]
push 0
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x14c]
push edx
push eax
push ecx
mov ecx, esi
call fcn.0046ccc0
mov ebp, eax
test ebp, ebp
jne 0x47eaec
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
xor al, al
jmp 0x47f442
mov eax, dword [esi + 0xa0]
neg eax
sbb eax, eax
test eax, eax
mov dword [esp + 0x20], eax
je 0x47eb8c
lea edi, [esi + 0x94]
jmp 0x47eb10
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
call fcn.004787f0
mov ebx, dword [esp + 0x30]
mov ecx, dword [esi + 4]
mov eax, ebx
imul eax, eax, 0x34
mov edx, dword [eax + ecx + 0x2c]
add eax, ecx
mov ecx, dword [esp + 0x144]
add ecx, 0xffff8ad0
cmp edx, ecx
jle 0x47eb5d
mov edx, dword [esp + 0x144]
mov ecx, dword [eax + 0x28]
add edx, 0x7530
cmp ecx, edx
jle 0x47eb84
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x47eb6c
mov eax, dword [ecx]
push 1
call dword [eax + 4]
push ebx
mov ecx, edi
call fcn.00479580
mov eax, dword [esi + 0xa0]
neg eax
sbb eax, eax
mov dword [esp + 0x20], eax
jmp 0x47eb88
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x47eb10
mov eax, dword [esp + 0x54]
lea edx, [ebp + 8]
push edx
lea ecx, [esi + 0xb0]
push eax
call fcn.00479da0
lea ecx, [esp + 0x90]
call fcn.00478880
mov ebx, dword [ebp + 0x10]
xor edi, edi
test ebx, ebx
mov byte [esp + 0x138], 1
jle 0x47ec0b
lea ecx, [ecx]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + edi*4]
mov edx, dword [esi + 4]
mov dword [esp + 0x80], eax
imul eax, eax, 0x34
mov ecx, dword [eax + edx + 0x24]
add eax, edx
mov edx, dword [eax + 0x30]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x98]
lea eax, [esp + 0x80]
push eax
push ecx
lea ecx, [esp + 0x98]
mov dword [esp + 0x90], edx
call fcn.00478c40
inc edi
cmp edi, ebx
jl 0x47ebc0
mov edx, dword [esp + 0x94]
push 0x4782c0
push 0xc
push ebx
push edx
call fcn.004b8790
mov ecx, dword [esp + 0xa8]
xor eax, eax
add esp, 0x10
test ecx, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x78], ecx
jle 0x47f422
mov ecx, dword [esp + 0x94]
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 4]
mov ebp, dword [esp + 0x14c]
lea eax, [eax + eax*2]
mov ebx, dword [ecx + eax*4]
mov edx, ebx
imul edx, edx, 0x34
add edx, esi
push edx
lea ecx, [esp + 0xc0]
mov dword [esp + 0x64], ebx
call fcn.0043fd90
push ebx
mov ecx, edi
mov byte [esp + 0x13c], 2
call fcn.0046c220
mov eax, dword [esp + 0x148]
push ebp
push eax
push ebx
mov ecx, edi
call fcn.0046c160
mov ecx, dword [esp + 0x144]
mov edx, dword [esp + 0x148]
mov esi, eax
push ebp
sub ecx, esi
push edx
mov dword [edi + 0xe8], ecx
push ebx
mov ecx, edi
call fcn.0046c1c0
sub eax, esi
push ebx
mov ecx, edi
mov dword [edi + 0xec], eax
call fcn.0047e4d0
test eax, eax
mov dword [esp + 0x18], eax
je 0x47f35d
mov edx, eax
lea eax, [edx + 0x6c]
mov ecx, dword [eax]
mov dword [esp + 0x68], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x6c], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x70], ecx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x74], eax
lea ecx, [edx + 0x5c]
mov eax, ecx
mov ebp, dword [eax]
mov ebx, dword [eax + 4]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x4c], eax
sub eax, ebx
mov dword [esp + 0x20], eax
mov eax, ecx
sub eax, ebp
mov dword [esp + 0x58], eax
xor eax, eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ecx
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], eax
jmp 0x47ed32
mov edx, dword [esp + 0x18]
mov esi, dword [edx + eax*4 + 0x28]
test esi, esi
je case.default.0x47ed47
cmp eax, 4
ja case.default.0x47ed47
jmp dword [eax*4 + 0x47f460]
mov ecx, dword [esi + 8]
mov ebx, dword [esi + 4]
mov ebp, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 0x24]
mov esi, dword [esi + 0x28]
cmp esi, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x8c], ebp
mov dword [esp + 0xa4], edx
jge 0x47ed83
mov edx, eax
mov eax, esi
mov esi, edx
test eax, eax
jg 0x47ed93
test esi, esi
jg 0x47ed93
mov esi, dword [edi + 0xec]
xor eax, eax
mov edx, dword [edi + 0xe8]
cmp eax, edx
jl 0x47eda1
mov esi, ebx
jmp 0x47ee05
cmp edx, esi
jge 0x47edfc
sub edx, eax
mov dword [esp + 0x50], edx
fild dword [esp + 0x50]
sub esi, eax
mov dword [esp + 0x50], esi
fild dword [esp + 0x50]
fdivp st(1)
fld qword [0x4f9a60]
fsub st(1)
fild dword [esp + 0x80]
fmul st(1)
fild dword [esp + 0xa4]
fmul st(3)
faddp st(1)
call fcn.004b76b8
fild dword [esp + 0x8c]
mov esi, eax
fmul st(2)
fild dword [esp + 0x24]
fmul st(2)
faddp st(1)
call fcn.004b76b8
fstp st(0)
fstp st(0)
mov ecx, eax
jmp 0x47ee05
mov esi, dword [esp + 0xa4]
mov ecx, ebp
mov eax, dword [esp + 0x18]
mov ebx, dword [eax + 0x1c]
cmp ebx, 3
jg 0x47ee17
mov eax, dword [esp + 0x20]
jmp 0x47ee26
cmp ebx, 6
jg 0x47ee28
mov eax, dword [esp + 0x20]
inc eax
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov eax, ebx
cdq
mov ebx, 3
idiv ebx
cmp edx, 1
je 0x47ee4d
test edx, edx
jne 0x47ee41
mov eax, dword [esp + 0x58]
jmp 0x47ee4b
mov eax, dword [esp + 0x58]
inc eax
cdq
sub eax, edx
sar eax, 1
sub esi, eax
mov edx, dword [esp + 0x58]
mov eax, esi
mov esi, dword [esp + 0x20]
add edx, eax
add esi, ecx
mov ebp, eax
mov ebx, ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], esi
jmp 0x47f04f
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
mov byte [esp + 0x13], 1
jmp case.default.0x47ed47
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
cmp ecx, 0xffffffff
mov edi, dword [esi + 0x2c]
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 0x30]
jne 0x47eeaf
cmp edx, ecx
jne 0x47eeaf
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0xec]
mov eax, edx
xor ecx, ecx
sub eax, edi
mov edi, eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xe8]
cmp eax, ecx
jge 0x47eecd
mov ecx, dword [esi + 4]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
jmp case.default.0x47ed47
cmp eax, dword [esp + 0x1c]
jge 0x47eefd
sub eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
fild dword [esp + 0x24]
sub eax, ecx
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fdivp st(1)
fld qword [0x4f9a60]
fsub st(1)
fimul dword [esi + 4]
fild dword [esi + 8]
jmp 0x47ef39
cmp eax, edi
jge 0x47ef11
mov edx, dword [esi + 8]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x1c], edx
jmp case.default.0x47ed47
cmp eax, edx
jge 0x47ef51
sub eax, edi
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
sub edx, edi
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
fdivp st(1)
fld qword [0x4f9a60]
fsub st(1)
fimul dword [esi + 8]
fild dword [esi + 0xc]
fmul st(2)
faddp st(1)
call fcn.004b76b8
fstp st(0)
mov edi, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
jmp case.default.0x47ed47
mov eax, dword [esi + 0xc]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
jmp case.default.0x47ed47
mov eax, dword [esi + 8]
fild dword [edi + 0xe8]
test eax, eax
je 0x47ef93
fmul qword [0x50a9d8]
fidiv dword [esi + 4]
call fcn.004b76b8
mov ebp, dword [esp + 0x58]
mov ecx, dword [esp + 0x58]
neg ebp
sub ebp, eax
add ecx, ebp
mov dword [esp + 0x48], ecx
jmp 0x47f04f
fmul qword [0x50a938]
fidiv dword [esi + 4]
call fcn.004b76b8
mov ebp, dword [edi + 0xe0]
mov ecx, dword [esp + 0x58]
sub ebp, eax
add ecx, ebp
mov dword [esp + 0x48], ecx
jmp 0x47f04f
mov eax, dword [esi + 0x10]
fild dword [edi + 0xe8]
test eax, eax
je 0x47efde
fmul qword [0x50a9d8]
fidiv dword [esi + 0xc]
call fcn.004b76b8
mov ebx, dword [esi + 4]
sub ebx, eax
mov eax, dword [esp + 0x20]
jmp 0x47efef
fmul qword [0x50a938]
fidiv dword [esi + 0xc]
call fcn.004b76b8
mov ebx, dword [esi + 8]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x140]
mov ecx, dword [ecx + 4]
sub ebx, eax
mov eax, dword [esi + 8]
mov esi, dword [esi + 4]
add edx, ebx
add eax, 4
sar eax, 3
mov dword [esp + 0x4c], edx
lea edx, [esp + 0xac]
mov dword [esp + 0xb8], eax
push edx
lea eax, [esp + 0x6c]
add esi, 4
mov dword [esp + 0xb8], ecx
push eax
lea ecx, [esp + 0x70]
sar esi, 3
push ecx
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], esi
call dword [sym.imp.USER32.dll_IntersectRect]
mov byte [esp + 0x12], 1
mov eax, dword [esp + 0x34]
inc eax
cmp eax, 5
mov dword [esp + 0x34], eax
jl 0x47ed2e
mov al, byte [esp + 0x12]
test al, al
mov dword [esp + 0x44], ebx
jne 0x47f0ca
mov al, byte [esp + 0x13]
test al, al
jne 0x47f0ca
mov edx, dword [esp + 0x18]
mov al, byte [edx + 0x24]
test al, al
jne 0x47f0ca
mov eax, dword [edi + 0x40]
mov ecx, dword [esp + 0xe0]
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
push ecx
lea edx, [esp + 0x104]
push edx
lea ecx, [edi + 0xb0]
call fcn.00479e20
mov ebx, dword [eax + 4]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ebp, dword [eax]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov esi, dword [esp + 0x18]
mov ecx, dword [esi + 0x1c]
mov eax, ecx
cdq
mov edi, 3
idiv edi
cmp edx, 1
je 0x47f0f8
cmp edx, 2
jne 0x47f0f4
mov eax, dword [esp + 0x48]
add eax, ebp
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
jmp 0x47f0f8
mov ebp, dword [esp + 0x48]
cmp ecx, 3
mov dword [esp + 0x28], ebp
jg 0x47f107
mov eax, dword [esp + 0x4c]
jmp 0x47f11c
cmp ecx, 6
jg 0x47f11a
mov ecx, dword [esp + 0x4c]
lea eax, [ecx + ebx]
cdq
sub eax, edx
sar eax, 1
jmp 0x47f11c
mov eax, ebx
mov cl, byte [esp + 0x13]
test cl, cl
jne 0x47f12c
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x58]
test eax, eax
je 0x47f13b
mov ebx, dword [eax + 0x180]
jmp 0x47f13d
xor ebx, ebx
mov edx, dword [esp + 0x18]
mov edi, dword [edx + 4]
mov ebp, dword [esp + 0x44]
xor eax, eax
test edi, edi
mov dword [esp + 0x60], eax
je 0x47f1f0
mov eax, edi
mov esi, dword [eax + 8]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x1c]
cdq
mov ecx, 3
idiv ecx
mov edi, dword [edi]
cmp edx, 1
jne 0x47f177
mov eax, dword [esp + 0x28]
jmp 0x47f194
test edx, edx
jne 0x47f184
mov eax, dword [esp + 0x28]
sub eax, dword [esi + 0x1c]
jmp 0x47f194
mov eax, dword [esi + 0x1c]
cdq
sub eax, edx
mov edx, eax
mov eax, dword [esp + 0x28]
sar edx, 1
sub eax, edx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [edx + 0xe8]
mov edx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push edx
push ecx
push ebp
push eax
mov eax, dword [esp + 0x158]
push ebx
lea edx, [esp + 0x84]
push edx
push eax
lea ecx, [esp + 0x124]
push ecx
mov ecx, esi
call fcn.0047bf70
push eax
mov eax, dword [esp + 0x154]
push eax
push eax
call dword [sym.imp.USER32.dll_UnionRect]
mov edx, dword [esi + 0x24]
add edx, dword [esi + 0x20]
add ebp, edx
test edi, edi
jne 0x47f156
mov ebp, dword [esp + 0x44]
xor eax, eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x18]
mov edi, dword [eax + 4]
test edi, edi
je 0x47f2aa
lea esp, [esp]
mov ecx, dword [esp + 0x18]
mov eax, edi
mov esi, dword [eax + 8]
mov eax, dword [ecx + 0x1c]
cdq
mov ecx, 3
idiv ecx
mov edi, dword [edi]
cmp edx, 1
jne 0x47f231
mov eax, dword [esp + 0x28]
jmp 0x47f24e
test edx, edx
jne 0x47f23e
mov eax, dword [esp + 0x28]
sub eax, dword [esi + 0x1c]
jmp 0x47f24e
mov eax, dword [esi + 0x1c]
cdq
sub eax, edx
mov edx, eax
mov eax, dword [esp + 0x28]
sar edx, 1
sub eax, edx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [edx + 0xe8]
mov edx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push edx
push ecx
push ebp
push eax
mov eax, dword [esp + 0x158]
push ebx
lea edx, [esp + 0x84]
push edx
push eax
lea ecx, [esp + 0x144]
push ecx
mov ecx, esi
call fcn.0047c180
push eax
mov eax, dword [esp + 0x154]
push eax
push eax
call dword [sym.imp.USER32.dll_UnionRect]
mov edx, dword [esi + 0x24]
add edx, dword [esi + 0x20]
add ebp, edx
test edi, edi
jne 0x47f210
mov ebp, dword [esp + 0x44]
xor eax, eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x18]
mov edi, dword [eax + 4]
test edi, edi
je 0x47f35d
mov ecx, dword [esp + 0x18]
mov eax, edi
mov esi, dword [eax + 8]
mov eax, dword [ecx + 0x1c]
cdq
mov ecx, 3
idiv ecx
mov edi, dword [edi]
cmp edx, 1
jne 0x47f2e4
mov eax, dword [esp + 0x28]
jmp 0x47f301
test edx, edx
jne 0x47f2f1
mov eax, dword [esp + 0x28]
sub eax, dword [esi + 0x1c]
jmp 0x47f301
mov eax, dword [esi + 0x1c]
cdq
sub eax, edx
mov edx, eax
mov eax, dword [esp + 0x28]
sar edx, 1
sub eax, edx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [edx + 0xe8]
mov edx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push edx
push ecx
push ebp
push eax
mov eax, dword [esp + 0x158]
push ebx
lea edx, [esp + 0x84]
push edx
push eax
lea ecx, [esp + 0x134]
push ecx
mov ecx, esi
call fcn.0047c350
push eax
mov eax, dword [esp + 0x154]
push eax
push eax
call dword [sym.imp.USER32.dll_UnionRect]
mov edx, dword [esi + 0x24]
add edx, dword [esi + 0x20]
add ebp, edx
test edi, edi
jne 0x47f2c3
mov eax, dword [esp + 0xcc]
add eax, 0xfffffff0
mov byte [esp + 0x138], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47f386
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47f3a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47f3c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47f3e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xbc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47f40a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x98]
inc eax
cmp eax, ecx
mov dword [esp + 0x30], eax
jl 0x47ec3c
lea ecx, [esp + 0x90]
call fcn.004788a0
mov eax, dword [esp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [esp + 0x78]
test eax, eax
setg al
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret 0x14