Function at 0x479bb0
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 0x47a46a
cmp dword [ebx + 0x4c], 0
jle 0x47a46a
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xcc]
cmp dword [ebx + 0x23c], 0xffffffff
je 0x47a3df
cmp dword [ebx + 0x2c0], 0
je 0x47a3df
mov dl, 1
mov eax, dword [0x41d10c]
call fcn.00422e6c
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 + 0x290]
test esi, esi
je 0x479d6a
mov eax, dword [ebx + 0x2c0]
cmp byte [eax + 0x5c], 0
je 0x479cae
cmp dword [ebx + 0x294], 0
jne 0x479c75
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.00412fec
lea eax, [esp + 0x70]
push eax
mov eax, edi
call fcn.00423434
mov ecx, dword [ebx + 0x290]
pop edx
call fcn.0041edb8
jmp 0x479d6a
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.00412fec
lea eax, [esp + 0x70]
push eax
mov eax, edi
call fcn.00423434
mov ecx, dword [ebx + 0x290]
pop edx
call fcn.0041edb8
jmp 0x479d6a
cmp dword [ebx + 0x294], 0
jne 0x479cd5
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [ebx + 0x290]
mov edx, dword [eax]
call dword [edx + 0x2c]
pop edx
xchg edx, eax
mov ecx, edx
cdq
idiv ecx
mov esi, eax
jmp 0x479ceb
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 + 0x290]
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 0x479d6a
inc esi
mov dword [esp + 4], 0
mov ebp, dword [esp + 0xc]
test ebp, ebp
jl 0x479d63
inc ebp
mov dword [esp + 8], 0
mov eax, dword [ebx + 0x290]
push eax
mov eax, dword [ebx + 0x290]
mov edx, dword [eax]
call dword [edx + 0x20]
imul dword [esp + 0xc]
push eax
mov eax, dword [ebx + 0x290]
mov edx, dword [eax]
call dword [edx + 0x2c]
imul dword [esp + 0xc]
push eax
mov eax, edi
call fcn.00423434
pop edx
pop ecx
call fcn.0041eb7c
inc dword [esp + 8]
dec ebp
jne 0x479d27
inc dword [esp + 4]
dec esi
jne 0x479d16
cmp dword [ebx + 0x294], 0
je 0x479e6a
mov eax, dword [ebx + 0x2c0]
cmp byte [eax + 0x64], 0
je 0x479dc3
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.00412fec
lea eax, [esp + 0x70]
push eax
mov eax, edi
call fcn.00423434
mov ecx, dword [ebx + 0x294]
pop edx
call fcn.0041edb8
jmp 0x479e6a
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, dword [ebx + 0x280]
push eax
mov eax, dword [ebx + 0x294]
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 + 0x290]
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 0x479e6a
inc esi
mov dword [esp + 4], 0
mov ebp, dword [esp + 0xc]
test ebp, ebp
jl 0x479e63
inc ebp
mov dword [esp + 8], 0
mov eax, dword [ebx + 0x294]
push eax
mov eax, dword [ebx + 0x290]
mov edx, dword [eax]
call dword [edx + 0x20]
imul dword [esp + 0xc]
push eax
mov eax, dword [ebx + 0x290]
mov edx, dword [eax]
call dword [edx + 0x2c]
imul dword [esp + 0xc]
add eax, dword [ebx + 0x280]
push eax
mov eax, edi
call fcn.00423434
pop edx
pop ecx
call fcn.0041eb7c
inc dword [esp + 8]
dec ebp
jne 0x479e21
inc dword [esp + 4]
dec esi
jne 0x479e10
lea edx, [esp + 0x60]
mov eax, ebx
call fcn.00479b60
lea eax, [esp + 0x60]
call fcn.004cf6b0
test al, al
jne 0x47a0fb
mov esi, dword [ebx + 0x2c0]
mov ebp, dword [esi + 0x44]
mov eax, dword [esi + 0x40]
mov dword [esp + 0x14], eax
lea eax, [esi + 0x10]
call fcn.004cf804
sub eax, dword [esi + 0x48]
mov dword [esp + 0x18], eax
lea eax, [esi + 0x10]
call fcn.004cf820
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.00412fec
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.004cf804
mov ebp, eax
lea eax, [esi + 0x10]
call fcn.004cf804
sub ebp, eax
lea eax, [esp + 0x60]
call fcn.004cf820
push eax
lea eax, [esi + 0x10]
call fcn.004cf820
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.00412fc4
lea ecx, [esp + 0x30]
mov edx, dword [esi + 0x34]
add edx, dword [esp + 0x10]
mov eax, dword [esi + 0x30]
call fcn.00412fc4
lea ecx, [esp + 0x38]
mov edx, dword [esi + 0x3c]
add edx, dword [esp + 0x10]
mov eax, dword [esi + 0x38]
add eax, ebp
call fcn.00412fc4
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.00412fec
mov dl, 1
mov eax, dword [0x41d10c]
call fcn.00422e6c
mov dword [esp + 0x40], eax
mov dl, 1
mov eax, dword [0x41d10c]
call fcn.00422e6c
mov esi, eax
mov dl, 1
mov eax, dword [0x41d10c]
call fcn.00422e6c
mov dword [esp + 0x44], eax
mov dl, 1
mov eax, dword [0x41d10c]
call fcn.00422e6c
mov dword [esp + 0x48], eax
mov ebp, dword [ebx + 0x2c0]
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 + 0x28c]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [esp + 0x94]
call fcn.004cf804
push eax
lea eax, [esp + 0x98]
call fcn.004cf820
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.004d3858
push esi
mov eax, edi
call fcn.00423434
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
call fcn.0041eb7c
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.00423434
mov edx, dword [esp + 0x68]
pop ecx
call fcn.0041eb7c
mov eax, dword [esp + 0x44]
push eax
lea eax, [esp + 0x64]
call fcn.004cf804
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.00423434
pop ecx
pop edx
call fcn.0041eb7c
mov eax, dword [esp + 0x48]
push eax
lea eax, [esp + 0x64]
call fcn.004cf820
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.00423434
mov edx, dword [esp + 0x68]
pop ecx
call fcn.0041eb7c
mov eax, dword [esp + 0x40]
call fcn.00403338
mov eax, esi
call fcn.00403338
mov eax, dword [esp + 0x44]
call fcn.00403338
mov eax, dword [esp + 0x48]
call fcn.00403338
mov eax, ebx
call fcn.00479270
lea eax, [ebx + 0x24c]
call fcn.004cf6b0
test al, al
jne 0x47a186
cmp byte [ebx + 0x25c], 0
je 0x47a15b
mov eax, dword [ebx + 0x2c0]
add eax, 0x10c
call fcn.004cf6b0
test al, al
jne 0x47a15b
mov eax, dword [ebx + 0x2c0]
add eax, 0x10c
push eax
mov eax, dword [ebx + 0x28c]
call fcn.00423434
push eax
mov eax, edi
call fcn.00423434
lea edx, [ebx + 0x24c]
pop ecx
call fcn.0041eaf4
jmp 0x47a186
mov eax, dword [ebx + 0x2c0]
add eax, 0xfc
push eax
mov eax, dword [ebx + 0x28c]
call fcn.00423434
push eax
mov eax, edi
call fcn.00423434
lea edx, [ebx + 0x24c]
pop ecx
call fcn.0041eaf4
xor eax, eax
mov dword [esp + 0x4c], eax
lea eax, [ebx + 0x24c]
call fcn.004cf6b0
test al, al
jne 0x47a1d8
mov eax, edi
call fcn.00423434
call fcn.0041f0a4
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.00423434
call fcn.0041f0a4
push eax
call sub.gdi32.dll_ExcludeClipRect
mov eax, dword [ebx + 0x268]
call fcn.0041521c
mov esi, eax
dec esi
test esi, esi
jl 0x47a216
inc esi
xor ebp, ebp
mov edx, ebp
mov eax, dword [ebx + 0x268]
call fcn.004769c4
cmp byte [eax + 0x1c], 0
je 0x47a212
mov eax, edi
call fcn.00423434
mov edx, eax
mov ecx, ebp
mov eax, ebx
call fcn.0047a4cc
inc ebp
dec esi
jne 0x47a1ed
cmp dword [esp + 0x4c], 0
je 0x47a234
mov eax, dword [esp + 0x4c]
push eax
mov eax, edi
call fcn.00423434
call fcn.0041f0a4
push eax
call sub.gdi32.dll_RestoreDC
mov eax, dword [ebx + 0x2c0]
add eax, 0xe4
call fcn.004cf6b0
test al, al
jne 0x47a2ce
mov dl, 1
mov eax, dword [0x41d10c]
call fcn.00422e6c
mov esi, eax
mov edx, dword [ebx + 0x48]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebx + 0x2c0]
add eax, 0xe4
call fcn.004cf820
mov edx, eax
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov ebp, dword [ebx + 0x2c0]
mov eax, dword [ebx + 0x28c]
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.004d08ac
push esi
mov eax, edi
call fcn.00423434
xor ecx, ecx
xor edx, edx
call fcn.0041eb7c
mov eax, esi
call fcn.00403338
mov eax, ebx
call fcn.00478630
test al, al
je 0x47a3c5
mov ebp, dword [ebx + 0x2c0]
mov dl, 1
mov eax, dword [0x41d10c]
call fcn.00422e6c
mov esi, eax
lea eax, [ebp + 0xd0]
call fcn.004cf804
mov edx, eax
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x40]
lea eax, [ebp + 0xd0]
call fcn.004cf820
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.00412fec
lea eax, [esp + 0x74]
push eax
mov eax, dword [ebx + 0x28c]
call fcn.00423434
push eax
mov eax, esi
call fcn.00423434
pop ecx
pop edx
call fcn.0041eaf4
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.0042459c
mov edx, dword [ebp + 0xe0]
mov eax, esi
call fcn.0042454c
push esi
mov eax, edi
call fcn.00423434
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
call fcn.0041eb7c
mov eax, esi
call fcn.00403338
push edi
xor ecx, ecx
xor edx, edx
mov eax, dword [esp + 4]
call fcn.0041eb7c
mov eax, edi
call fcn.00403338
jmp 0x47a46a
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.0041e9a0
mov eax, dword [esp]
mov eax, dword [eax + 0x14]
mov edx, 0xff000010
call fcn.0041e884
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.00412fec
lea edx, [esp + 0x70]
mov eax, dword [esp]
call fcn.0041ec70
mov eax, ebx
call fcn.00479270
mov eax, dword [ebx + 0x268]
call fcn.0041521c
mov esi, eax
dec esi
test esi, esi
jl 0x47a46a
inc esi
xor ebp, ebp
mov edx, ebp
mov eax, dword [ebx + 0x268]
call fcn.004769c4
cmp byte [eax + 0x1c], 0
je 0x47a466
mov ecx, ebp
mov edx, dword [esp]
mov eax, ebx
call fcn.0047af24
inc ebp
dec esi
jne 0x47a447
add esp, 0x80
pop ebp
pop edi
pop esi
pop ebx
ret