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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff80
mov dword [esp], edx
mov ebx, eax
cmp dword [ebx + 0x48], 0
jle 0x471aac
cmp dword [ebx + 0x4c], 0
jle 0x471aac
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xcc]
cmp dword [ebx + 0x23c], 0xffffffff
je 0x471a21
cmp dword [ebx + 0x2d0], 0
je 0x471a21
mov dl, 1
mov eax, dword [0x41ca0c]
call fcn.0042115c
mov edi, eax
mov edx, dword [ebx + 0x48]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov edx, dword [ebx + 0x4c]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov esi, dword [ebx + 0x29c]
test esi, esi
je 0x4712fa
mov eax, dword [ebx + 0x2d0]
cmp byte [eax + 0x5c], 0
je 0x47123e
cmp dword [ebx + 0x2a0], 0
jne 0x471205
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [esp + 0x74]
push eax
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.0041302c
lea eax, [esp + 0x70]
push eax
mov eax, edi
call fcn.0042172c
mov ecx, dword [ebx + 0x29c]
pop edx
call fcn.0041e6dc
jmp 0x4712fa
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [esp + 0x74]
push eax
mov ecx, dword [ebx + 0x280]
xor edx, edx
xor eax, eax
call fcn.0041302c
lea eax, [esp + 0x70]
push eax
mov eax, edi
call fcn.0042172c
mov ecx, dword [ebx + 0x29c]
pop edx
call fcn.0041e6dc
jmp 0x4712fa
cmp dword [ebx + 0x2a0], 0
jne 0x471265
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [ebx + 0x29c]
mov edx, dword [eax]
call dword [edx + 0x2c]
pop edx
xchg edx, eax
mov ecx, edx
cdq
idiv ecx
mov esi, eax
jmp 0x47127b
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [ebx + 0x280]
pop edx
mov ecx, edx
cdq
idiv ecx
mov esi, eax
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebx + 0x29c]
mov edx, dword [eax]
call dword [edx + 0x20]
pop edx
xchg edx, eax
mov ecx, edx
cdq
idiv ecx
mov dword [esp + 0xc], eax
test esi, esi
jl 0x4712fa
inc esi
mov dword [esp + 4], 0
mov ebp, dword [esp + 0xc]
test ebp, ebp
jl 0x4712f3
inc ebp
mov dword [esp + 8], 0
mov eax, dword [ebx + 0x29c]
push eax
mov eax, dword [ebx + 0x29c]
mov edx, dword [eax]
call dword [edx + 0x20]
imul dword [esp + 0xc]
push eax
mov eax, dword [ebx + 0x29c]
mov edx, dword [eax]
call dword [edx + 0x2c]
imul dword [esp + 0xc]
push eax
mov eax, edi
call fcn.0042172c
pop edx
pop ecx
call fcn.0041e4a0
inc dword [esp + 8]
dec ebp
jne 0x4712b7
inc dword [esp + 4]
dec esi
jne 0x4712a6
cmp dword [ebx + 0x2a0], 0
je 0x4713fa
mov eax, dword [ebx + 0x2d0]
cmp byte [eax + 0x64], 0
je 0x471353
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [esp + 0x74]
push eax
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
mov eax, dword [ebx + 0x280]
call fcn.0041302c
lea eax, [esp + 0x70]
push eax
mov eax, edi
call fcn.0042172c
mov ecx, dword [ebx + 0x2a0]
pop edx
call fcn.0041e6dc
jmp 0x4713fa
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, dword [ebx + 0x280]
push eax
mov eax, dword [ebx + 0x2a0]
mov edx, dword [eax]
call dword [edx + 0x2c]
pop edx
xchg edx, eax
mov ecx, edx
cdq
idiv ecx
mov esi, eax
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebx + 0x29c]
mov edx, dword [eax]
call dword [edx + 0x20]
pop edx
xchg edx, eax
mov ecx, edx
cdq
idiv ecx
mov dword [esp + 0xc], eax
test esi, esi
jl 0x4713fa
inc esi
mov dword [esp + 4], 0
mov ebp, dword [esp + 0xc]
test ebp, ebp
jl 0x4713f3
inc ebp
mov dword [esp + 8], 0
mov eax, dword [ebx + 0x2a0]
push eax
mov eax, dword [ebx + 0x29c]
mov edx, dword [eax]
call dword [edx + 0x20]
imul dword [esp + 0xc]
push eax
mov eax, dword [ebx + 0x29c]
mov edx, dword [eax]
call dword [edx + 0x2c]
imul dword [esp + 0xc]
add eax, dword [ebx + 0x280]
push eax
mov eax, edi
call fcn.0042172c
pop edx
pop ecx
call fcn.0041e4a0
inc dword [esp + 8]
dec ebp
jne 0x4713b1
inc dword [esp + 4]
dec esi
jne 0x4713a0
lea edx, [esp + 0x60]
mov eax, ebx
call fcn.004710f0
lea eax, [esp + 0x60]
call fcn.004c9f64
test al, al
jne 0x47168b
mov esi, dword [ebx + 0x2d0]
mov ebp, dword [esi + 0x44]
mov eax, dword [esi + 0x40]
mov dword [esp + 0x14], eax
lea eax, [esi + 0x10]
call fcn.004ca0b8
sub eax, dword [esi + 0x48]
mov dword [esp + 0x18], eax
lea eax, [esi + 0x10]
call fcn.004ca0d4
sub eax, dword [esi + 0x4c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x6c]
add eax, dword [esp + 0x1c]
push eax
lea eax, [esp + 0x74]
push eax
mov ecx, dword [esp + 0x70]
add ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x6c]
sub edx, ebp
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x1c]
call fcn.0041302c
push esi
push edi
lea esi, [esp + 0x78]
lea edi, [esp + 0x68]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [esp + 0x60]
call fcn.004ca0b8
mov ebp, eax
lea eax, [esi + 0x10]
call fcn.004ca0b8
sub ebp, eax
lea eax, [esp + 0x60]
call fcn.004ca0d4
push eax
lea eax, [esi + 0x10]
call fcn.004ca0d4
pop edx
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x20]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x28]
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x28]
add eax, ebp
call fcn.00413004
lea ecx, [esp + 0x30]
mov edx, dword [esi + 0x34]
add edx, dword [esp + 0x10]
mov eax, dword [esi + 0x30]
call fcn.00413004
lea ecx, [esp + 0x38]
mov edx, dword [esi + 0x3c]
add edx, dword [esp + 0x10]
mov eax, dword [esi + 0x38]
add eax, ebp
call fcn.00413004
mov eax, dword [esi + 0x4c]
add eax, dword [esp + 0x10]
push eax
lea eax, [esp + 0x54]
push eax
mov ecx, dword [esi + 0x48]
add ecx, ebp
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x40]
call fcn.0041302c
mov dl, 1
mov eax, dword [0x41ca0c]
call fcn.0042115c
mov dword [esp + 0x40], eax
mov dl, 1
mov eax, dword [0x41ca0c]
call fcn.0042115c
mov esi, eax
mov dl, 1
mov eax, dword [0x41ca0c]
call fcn.0042115c
mov dword [esp + 0x44], eax
mov dl, 1
mov eax, dword [0x41ca0c]
call fcn.0042115c
mov dword [esp + 0x48], eax
mov ebp, dword [ebx + 0x2d0]
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp + 0x40]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x68]
push eax
mov eax, dword [esp + 0x5c]
push eax
push esi
mov eax, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x70]
push eax
mov eax, dword [ebx + 0x298]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [esp + 0x94]
call fcn.004ca0b8
push eax
lea eax, [esp + 0x98]
call fcn.004ca0d4
push eax
mov al, byte [ebp + 0x52]
push eax
mov al, byte [ebp + 0x53]
push eax
mov al, byte [ebp + 0x54]
push eax
mov al, byte [ebp + 0x55]
push eax
lea ecx, [ebp + 0x30]
lea edx, [ebp + 0x28]
lea eax, [ebp + 0x20]
call fcn.004ce10c
push esi
mov eax, edi
call fcn.0042172c
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
call fcn.0041e4a0
mov eax, dword [esp + 0x40]
push eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x20]
add eax, dword [esp + 0x68]
push eax
mov eax, edi
call fcn.0042172c
mov edx, dword [esp + 0x68]
pop ecx
call fcn.0041e4a0
mov eax, dword [esp + 0x44]
push eax
lea eax, [esp + 0x64]
call fcn.004ca0b8
mov ebp, eax
add ebp, dword [esp + 0x64]
mov eax, dword [esp + 0x48]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub ebp, eax
push ebp
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x20]
add eax, dword [esp + 0x6c]
push eax
mov eax, edi
call fcn.0042172c
pop ecx
pop edx
call fcn.0041e4a0
mov eax, dword [esp + 0x48]
push eax
lea eax, [esp + 0x64]
call fcn.004ca0d4
mov ebp, eax
add ebp, dword [esp + 0x68]
mov eax, dword [esp + 0x4c]
mov edx, dword [eax]
call dword [edx + 0x20]
sub ebp, eax
push ebp
mov eax, edi
call fcn.0042172c
mov edx, dword [esp + 0x68]
pop ecx
call fcn.0041e4a0
mov eax, dword [esp + 0x40]
call fcn.0040350c
mov eax, esi
call fcn.0040350c
mov eax, dword [esp + 0x44]
call fcn.0040350c
mov eax, dword [esp + 0x48]
call fcn.0040350c
mov eax, ebx
call fcn.004707c4
lea eax, [ebx + 0x24c]
call fcn.004c9f64
test al, al
jne 0x4717c8
mov esi, dword [ebx + 0x284]
test esi, esi
je 0x471753
cmp dword [ebx + 0x288], 0
jl 0x471753
mov eax, esi
call fcn.0043bae4
cmp eax, dword [ebx + 0x288]
jle 0x471753
cmp byte [ebx + 0x25c], 0
je 0x471727
cmp dword [ebx + 0x28c], 0
jl 0x471727
mov eax, dword [ebx + 0x284]
call fcn.0043bae4
cmp eax, dword [ebx + 0x28c]
jle 0x471727
mov eax, dword [ebx + 0x250]
push eax
mov eax, dword [ebx + 0x28c]
push eax
push 1
mov eax, edi
call fcn.0042172c
mov edx, eax
mov ecx, dword [ebx + 0x24c]
mov eax, dword [ebx + 0x284]
call fcn.0043bdd4
jmp 0x4717c8
mov eax, dword [ebx + 0x250]
push eax
mov eax, dword [ebx + 0x288]
push eax
push 1
mov eax, edi
call fcn.0042172c
mov edx, eax
mov ecx, dword [ebx + 0x24c]
mov eax, dword [ebx + 0x284]
call fcn.0043bdd4
jmp 0x4717c8
cmp byte [ebx + 0x25c], 0
je 0x47179d
mov eax, dword [ebx + 0x2d0]
add eax, 0x10c
call fcn.004c9f64
test al, al
jne 0x47179d
mov eax, dword [ebx + 0x2d0]
add eax, 0x10c
push eax
mov eax, dword [ebx + 0x298]
call fcn.0042172c
push eax
mov eax, edi
call fcn.0042172c
lea edx, [ebx + 0x24c]
pop ecx
call fcn.0041e418
jmp 0x4717c8
mov eax, dword [ebx + 0x2d0]
add eax, 0xfc
push eax
mov eax, dword [ebx + 0x298]
call fcn.0042172c
push eax
mov eax, edi
call fcn.0042172c
lea edx, [ebx + 0x24c]
pop ecx
call fcn.0041e418
xor eax, eax
mov dword [esp + 0x4c], eax
lea eax, [ebx + 0x24c]
call fcn.004c9f64
test al, al
jne 0x47181a
mov eax, edi
call fcn.0042172c
call fcn.0041e9c8
push eax
call sub.gdi32.dll_SaveDC
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 0x258]
add eax, 2
push eax
mov eax, dword [ebx + 0x280]
push eax
push 0
push 0
mov eax, edi
call fcn.0042172c
call fcn.0041e9c8
push eax
call sub.gdi32.dll_ExcludeClipRect
mov eax, dword [ebx + 0x268]
call fcn.00415288
mov esi, eax
dec esi
test esi, esi
jl 0x471858
inc esi
xor ebp, ebp
mov edx, ebp
mov eax, dword [ebx + 0x268]
call fcn.0046d9f0
cmp byte [eax + 0x1c], 0
je 0x471854
mov eax, edi
call fcn.0042172c
mov edx, eax
mov ecx, ebp
mov eax, ebx
call fcn.00471b0c
inc ebp
dec esi
jne 0x47182f
cmp dword [esp + 0x4c], 0
je 0x471876
mov eax, dword [esp + 0x4c]
push eax
mov eax, edi
call fcn.0042172c
call fcn.0041e9c8
push eax
call sub.gdi32.dll_RestoreDC
mov eax, dword [ebx + 0x2d0]
add eax, 0xe4
call fcn.004c9f64
test al, al
jne 0x471910
mov dl, 1
mov eax, dword [0x41ca0c]
call fcn.0042115c
mov esi, eax
mov edx, dword [ebx + 0x48]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebx + 0x2d0]
add eax, 0xe4
call fcn.004ca0d4
mov edx, eax
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov ebp, dword [ebx + 0x2d0]
mov eax, dword [ebx + 0x298]
push eax
lea eax, [ebp + 0xe4]
push eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
push 1
mov edx, dword [ebp + 0xf8]
mov eax, dword [ebp + 0xf4]
mov ecx, esi
call fcn.004cb160
push esi
mov eax, edi
call fcn.0042172c
xor ecx, ecx
xor edx, edx
call fcn.0041e4a0
mov eax, esi
call fcn.0040350c
mov eax, ebx
call fcn.0046fb1c
test al, al
je 0x471a07
mov ebp, dword [ebx + 0x2d0]
mov dl, 1
mov eax, dword [0x41ca0c]
call fcn.0042115c
mov esi, eax
lea eax, [ebp + 0xd0]
call fcn.004ca0b8
mov edx, eax
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x40]
lea eax, [ebp + 0xd0]
call fcn.004ca0d4
mov edx, eax
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea eax, [ebp + 0xd0]
push eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [esp + 0x78]
push eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.0041302c
lea eax, [esp + 0x74]
push eax
mov eax, dword [ebx + 0x298]
call fcn.0042172c
push eax
mov eax, esi
call fcn.0042172c
pop ecx
pop edx
call fcn.0041e418
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ebx, eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x2c]
sub ebx, eax
mov dword [esp + 4], ebx
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x20]
mov ebx, eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x20]
sub ebx, eax
mov dword [esp + 8], ebx
mov dl, 1
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov dl, 1
mov eax, esi
call fcn.00422894
mov edx, dword [ebp + 0xe0]
mov eax, esi
call fcn.00422844
push esi
mov eax, edi
call fcn.0042172c
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
call fcn.0041e4a0
mov eax, esi
call fcn.0040350c
push edi
xor ecx, ecx
xor edx, edx
mov eax, dword [esp + 4]
call fcn.0041e4a0
mov eax, edi
call fcn.0040350c
jmp 0x471aac
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov edx, dword [ebx + 0x68]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp]
mov eax, dword [eax + 0x14]
xor edx, edx
call fcn.0041e2c4
mov eax, dword [esp]
mov eax, dword [eax + 0x14]
mov edx, 0xff000010
call fcn.0041e1a8
mov eax, dword [ebx + 0x4c]
push eax
lea eax, [esp + 0x74]
push eax
mov ecx, dword [ebx + 0x48]
xor edx, edx
xor eax, eax
call fcn.0041302c
lea edx, [esp + 0x70]
mov eax, dword [esp]
call fcn.0041e594
mov eax, ebx
call fcn.004707c4
mov eax, dword [ebx + 0x268]
call fcn.00415288
mov esi, eax
dec esi
test esi, esi
jl 0x471aac
inc esi
xor ebp, ebp
mov edx, ebp
mov eax, dword [ebx + 0x268]
call fcn.0046d9f0
cmp byte [eax + 0x1c], 0
je 0x471aa8
mov ecx, ebp
mov edx, dword [esp]
mov eax, ebx
call fcn.0047256c
inc ebp
dec esi
jne 0x471a89
add esp, 0x80
pop ebp
pop edi
pop esi
pop ebx
ret