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

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x14]
push eax
mov eax, dword [edi + 0x10]
push ecx
mov ecx, dword [edi + 0xc]
push edx
mov edx, dword [edi + 8]
push eax
mov eax, dword [edi + 4]
push ecx
push edx
push eax
mov eax, dword [edi]
mov esi, ebp
call fcn.0052c6a0
mov ecx, dword [edi + 0x44]
mov edx, dword [edi + 0x40]
mov eax, dword [edi + 0x3c]
push ecx
mov ecx, dword [edi + 0x38]
push edx
mov edx, dword [edi + 0x34]
push eax
mov eax, dword [edi + 0x30]
push ecx
mov ecx, dword [edi + 0x2c]
push edx
push eax
mov eax, dword [edi + 0x28]
push ecx
lea esi, [ebp + 0x28]
call fcn.0052c6a0
mov edx, dword [edi + 0x6c]
mov eax, dword [edi + 0x68]
mov ecx, dword [edi + 0x64]
push edx
mov edx, dword [edi + 0x60]
push eax
mov eax, dword [edi + 0x5c]
push ecx
mov ecx, dword [edi + 0x58]
push edx
mov edx, dword [edi + 0x54]
push eax
mov eax, dword [edi + 0x50]
push ecx
push edx
lea esi, [ebp + 0x50]
call fcn.0052c6a0
mov edx, dword [edi + 0x78]
mov esi, dword [edi + 0x7c]
mov ecx, dword [edi + 0x80]
xor ebx, ebx
test edx, edx
setle bl
mov eax, dword [edi + 0x84]
sub ebx, 1
and ebx, edx
xor edx, edx
test esi, esi
setle dl
mov dword [ebp + 0x78], ebx
sub edx, 1
and edx, esi
mov dword [ebp + 0x7c], edx
xor edx, edx
test ecx, ecx
setle dl
sub edx, 1
and edx, ecx
xor ecx, ecx
mov dword [ebp + 0x80], edx
test eax, eax
setle cl
xor ebx, ebx
sub ecx, 1
and ecx, eax
mov dword [ebp + 0x84], ecx
mov edx, dword [edi + 0x88]
test edx, edx
setle bl
mov esi, dword [edi + 0x8c]
mov eax, dword [edi + 0x94]
mov ecx, dword [edi + 0x90]
sub ebx, 1
and ebx, edx
xor edx, edx
test esi, esi
setle dl
mov dword [ebp + 0x88], ebx
sub edx, 1
and edx, esi
mov dword [ebp + 0x8c], edx
xor edx, edx
test ecx, ecx
setle dl
sub edx, 1
and edx, ecx
xor ecx, ecx
test eax, eax
setle cl
mov dword [ebp + 0x90], edx
xor ebx, ebx
sub ecx, 1
and ecx, eax
mov dword [ebp + 0x94], ecx
mov edx, dword [edi + 0x98]
mov esi, dword [edi + 0x9c]
test edx, edx
setle bl
mov eax, dword [edi + 0xa4]
mov ecx, dword [edi + 0xa0]
sub ebx, 1
and ebx, edx
xor edx, edx
test esi, esi
setle dl
mov dword [ebp + 0x98], ebx
sub edx, 1
and edx, esi
mov dword [ebp + 0x9c], edx
xor edx, edx
test ecx, ecx
setle dl
sub edx, 1
and edx, ecx
xor ecx, ecx
test eax, eax
setle cl
mov dword [ebp + 0xa0], edx
xor ebx, ebx
sub ecx, 1
and ecx, eax
mov dword [ebp + 0xa4], ecx
mov edx, dword [edi + 0xa8]
mov esi, dword [edi + 0xac]
test edx, edx
mov ecx, dword [edi + 0xb0]
setle bl
mov eax, dword [edi + 0xb4]
sub ebx, 1
and ebx, edx
xor edx, edx
test esi, esi
setle dl
mov dword [ebp + 0xa8], ebx
sub edx, 1
and edx, esi
mov dword [ebp + 0xac], edx
xor edx, edx
test ecx, ecx
setle dl
sub edx, 1
and edx, ecx
xor ecx, ecx
test eax, eax
setle cl
lea esi, [ebp + 0xb8]
mov dword [ebp + 0xb0], edx
sub ecx, 1
and ecx, eax
mov eax, esi
mov dword [ebp + 0xb4], ecx
call fcn.0052a9c0
mov eax, esi
lea ebx, [edi + 0xb8]
call fcn.0052a9c0
mov eax, ebx
mov dword [esp + 0x2c], 0
call fcn.00548180
test eax, eax
jle 0x54b343
mov ecx, dword [edi + 0xbc]
test ecx, ecx
je 0x54b1e0
mov eax, dword [edi + 0xc0]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x2c], eax
jb 0x54b1e5
call fcn.00578ff3
mov edx, dword [edi + 0xbc]
mov eax, dword [esp + 0x2c]
cmp dword [edx + eax*4], 0
je 0x54b2ca
push 0x10
call fcn.00578e5f
add esp, 4
test eax, eax
je 0x54b219
xor ecx, ecx
mov dword [eax], ecx
mov byte [eax + 4], 0xff
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov ebx, eax
jmp 0x54b21b
xor ebx, ebx
mov ecx, dword [edi + 0xbc]
test ecx, ecx
mov dword [esp + 0x14], ebx
je 0x54b23a
mov eax, dword [edi + 0xc0]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x2c], eax
jb 0x54b23f
call fcn.00578ff3
mov ecx, dword [edi + 0xbc]
mov edx, dword [esp + 0x2c]
mov eax, dword [ecx + edx*4]
mov cl, byte [eax + 4]
mov eax, dword [eax]
mov dword [ebx], eax
mov eax, dword [ebx + 8]
test eax, eax
mov byte [ebx + 4], cl
je 0x54b26b
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebx + 8], 0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x54b280
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebx + 0xc], 0
mov edx, dword [esi + 4]
test edx, edx
jne 0x54b28b
xor ecx, ecx
jmp 0x54b293
mov ecx, dword [esi + 8]
sub ecx, edx
sar ecx, 2
test edx, edx
je 0x54b2b0
mov eax, dword [esi + 0xc]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x54b2b0
mov eax, dword [esi + 8]
mov dword [eax], ebx
add eax, 4
mov dword [esi + 8], eax
jmp 0x54b325
mov ebx, dword [esi + 8]
cmp edx, ebx
jbe 0x54b2bc
call fcn.00578ff3
push ebx
push esi
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
jmp 0x54b31e
mov edx, dword [esi + 4]
test edx, edx
mov dword [esp + 0x14], 0
jne 0x54b2dd
xor ecx, ecx
jmp 0x54b2e5
mov ecx, dword [esi + 8]
sub ecx, edx
sar ecx, 2
test edx, edx
je 0x54b306
mov eax, dword [esi + 0xc]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x54b306
mov eax, dword [esi + 8]
mov dword [eax], 0
add eax, 4
mov dword [esi + 8], eax
jmp 0x54b325
mov ebx, dword [esi + 8]
cmp edx, ebx
jbe 0x54b312
call fcn.00578ff3
push ebx
push esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov eax, esi
call fcn.0045a4c0
mov ebx, dword [esp + 0x2c]
add ebx, 1
lea eax, [edi + 0xb8]
mov dword [esp + 0x2c], ebx
call fcn.00548180
cmp ebx, eax
jl 0x54b1c5
mov al, byte [edi + 0xcc]
mov edx, dword [edi + 0xc8]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
mov byte [ebp + 0xcc], al
mov eax, dword [ebp + 0xd0]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp + 0xc8], edx
je 0x54b376
push eax
call esi
mov dword [ebp + 0xd0], ebx
mov eax, dword [ebp + 0xd4]
cmp eax, ebx
je 0x54b389
push eax
call esi
mov dword [ebp + 0xd4], ebx
mov al, byte [edi + 0xdc]
mov ecx, dword [edi + 0xd8]
mov byte [ebp + 0xdc], al
mov eax, dword [ebp + 0xe0]
cmp eax, ebx
mov dword [ebp + 0xd8], ecx
je 0x54b3b4
push eax
call esi
mov dword [ebp + 0xe0], ebx
mov eax, dword [ebp + 0xe4]
cmp eax, ebx
je 0x54b3c7
push eax
call esi
mov dword [ebp + 0xe4], ebx
mov eax, dword [edi + 0xf4]
mov ecx, dword [edi + 0xf0]
mov edx, dword [edi + 0xec]
mov esi, dword [edi + 0xe8]
mov dword [ebp + 0xf4], eax
lea ebx, [ebp + 0xf8]
mov eax, ebx
mov dword [ebp + 0xe8], esi
mov dword [ebp + 0xec], edx
mov dword [ebp + 0xf0], ecx
call fcn.0052a9c0
mov eax, ebx
lea esi, [edi + 0xf8]
call fcn.0052a9c0
mov eax, esi
mov dword [esp + 0x2c], 0
call fcn.00548180
test eax, eax
jle 0x54b59b
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x54b43d
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x2c], eax
jb 0x54b442
call fcn.00578ff3
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x2c]
cmp dword [edx + eax*4], 0
je 0x54b524
push 0x10
call fcn.00578e5f
add esp, 4
test eax, eax
je 0x54b473
xor ecx, ecx
mov dword [eax], ecx
mov byte [eax + 4], 0xff
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov esi, eax
jmp 0x54b475
xor esi, esi
mov ecx, dword [edi + 0xfc]
test ecx, ecx
mov dword [esp + 0x14], esi
je 0x54b494
mov eax, dword [edi + 0x100]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x2c], eax
jb 0x54b499
call fcn.00578ff3
mov ecx, dword [edi + 0xfc]
mov edx, dword [esp + 0x2c]
mov eax, dword [ecx + edx*4]
mov cl, byte [eax + 4]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, dword [esi + 8]
test eax, eax
mov byte [esi + 4], cl
je 0x54b4c5
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 8], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x54b4da
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0xc], 0
mov edx, dword [ebx + 4]
test edx, edx
jne 0x54b4e5
xor ecx, ecx
jmp 0x54b4ed
mov ecx, dword [ebx + 8]
sub ecx, edx
sar ecx, 2
test edx, edx
je 0x54b50a
mov eax, dword [ebx + 0xc]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x54b50a
mov eax, dword [ebx + 8]
mov dword [eax], esi
add eax, 4
mov dword [ebx + 8], eax
jmp 0x54b57f
mov esi, dword [ebx + 8]
cmp edx, esi
jbe 0x54b516
call fcn.00578ff3
push esi
push ebx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x2c]
push edx
jmp 0x54b578
mov edx, dword [ebx + 4]
test edx, edx
mov dword [esp + 0x14], 0
jne 0x54b537
xor ecx, ecx
jmp 0x54b53f
mov ecx, dword [ebx + 8]
sub ecx, edx
sar ecx, 2
test edx, edx
je 0x54b560
mov eax, dword [ebx + 0xc]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x54b560
mov eax, dword [ebx + 8]
mov dword [eax], 0
add eax, 4
mov dword [ebx + 8], eax
jmp 0x54b57f
mov esi, dword [ebx + 8]
cmp edx, esi
jbe 0x54b56c
call fcn.00578ff3
push esi
push ebx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
mov eax, ebx
call fcn.0045a4c0
add dword [esp + 0x2c], 1
lea esi, [edi + 0xf8]
mov eax, esi
call fcn.00548180
cmp dword [esp + 0x2c], eax
jl 0x54b428
mov eax, dword [edi + 0x114]
mov ecx, dword [edi + 0x110]
mov edx, dword [edi + 0x10c]
mov esi, dword [edi + 0x108]
mov dword [ebp + 0x114], eax
lea ebx, [ebp + 0x118]
mov eax, ebx
mov dword [ebp + 0x108], esi
mov dword [ebp + 0x10c], edx
mov dword [ebp + 0x110], ecx
call fcn.0052a9c0
mov eax, ebx
lea esi, [edi + 0x118]
call fcn.0052a9c0
mov eax, esi
mov dword [esp + 0x2c], 0
call fcn.00548180
test eax, eax
jle 0x54b773
lea esp, [esp]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x54b615
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x2c], eax
jb 0x54b61a
call fcn.00578ff3
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x2c]
cmp dword [edx + eax*4], 0
je 0x54b6fc
push 0x10
call fcn.00578e5f
add esp, 4
test eax, eax
je 0x54b64b
xor ecx, ecx
mov dword [eax], ecx
mov byte [eax + 4], 0xff
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov esi, eax
jmp 0x54b64d
xor esi, esi
mov ecx, dword [edi + 0x11c]
test ecx, ecx
mov dword [esp + 0x14], esi
je 0x54b66c
mov eax, dword [edi + 0x120]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x2c], eax
jb 0x54b671
call fcn.00578ff3
mov ecx, dword [edi + 0x11c]
mov edx, dword [esp + 0x2c]
mov eax, dword [ecx + edx*4]
mov cl, byte [eax + 4]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, dword [esi + 8]
test eax, eax
mov byte [esi + 4], cl
je 0x54b69d
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 8], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x54b6b2
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0xc], 0
mov edx, dword [ebx + 4]
test edx, edx
jne 0x54b6bd
xor ecx, ecx
jmp 0x54b6c5
mov ecx, dword [ebx + 8]
sub ecx, edx
sar ecx, 2
test edx, edx
je 0x54b6e2
mov eax, dword [ebx + 0xc]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x54b6e2
mov eax, dword [ebx + 8]
mov dword [eax], esi
add eax, 4
mov dword [ebx + 8], eax
jmp 0x54b757
mov esi, dword [ebx + 8]
cmp edx, esi
jbe 0x54b6ee
call fcn.00578ff3
push esi
push ebx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x2c]
push edx
jmp 0x54b750
mov edx, dword [ebx + 4]
test edx, edx
mov dword [esp + 0x14], 0
jne 0x54b70f
xor ecx, ecx
jmp 0x54b717
mov ecx, dword [ebx + 8]
sub ecx, edx
sar ecx, 2
test edx, edx
je 0x54b738
mov eax, dword [ebx + 0xc]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x54b738
mov eax, dword [ebx + 8]
mov dword [eax], 0
add eax, 4
mov dword [ebx + 8], eax
jmp 0x54b757
mov esi, dword [ebx + 8]
cmp edx, esi
jbe 0x54b744
call fcn.00578ff3
push esi
push ebx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
mov eax, ebx
call fcn.0045a4c0
add dword [esp + 0x2c], 1
lea esi, [edi + 0x118]
mov eax, esi
call fcn.00548180
cmp dword [esp + 0x2c], eax
jl 0x54b600
mov edx, dword [edi + 0x12c]
push edx
mov edx, dword [edi + 0x128]
lea ecx, [edi + 0x130]
lea eax, [ebp + 0x128]
call fcn.0054a920
lea ebx, [ebp + 0x140]
mov eax, ebx
call fcn.0052a9c0
mov eax, ebx
lea esi, [edi + 0x140]
call fcn.0052a9c0
mov eax, esi
mov dword [esp + 0x2c], 0
call fcn.00548180
test eax, eax
jle 0x54b935
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x54b7d7
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x2c], eax
jb 0x54b7dc
call fcn.00578ff3
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x2c]
cmp dword [eax + ecx*4], 0
je 0x54b8be
push 0x10
call fcn.00578e5f
add esp, 4
test eax, eax
je 0x54b80d
xor ecx, ecx
mov dword [eax], ecx
mov byte [eax + 4], 0xff
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov esi, eax
jmp 0x54b80f
xor esi, esi
mov ecx, dword [edi + 0x144]
test ecx, ecx
mov dword [esp + 0x14], esi
je 0x54b82e
mov eax, dword [edi + 0x148]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x2c], eax
jb 0x54b833
call fcn.00578ff3
mov edx, dword [edi + 0x144]
mov eax, dword [esp + 0x2c]
mov eax, dword [edx + eax*4]
mov cl, byte [eax + 4]
mov edx, dword [eax]
mov eax, dword [esi + 8]
test eax, eax
mov dword [esi], edx
mov byte [esi + 4], cl
je 0x54b85f
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 8], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x54b874
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0xc], 0
mov edx, dword [ebx + 4]
test edx, edx
jne 0x54b87f
xor ecx, ecx
jmp 0x54b887
mov ecx, dword [ebx + 8]
sub ecx, edx
sar ecx, 2
test edx, edx
je 0x54b8a4
mov eax, dword [ebx + 0xc]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x54b8a4
mov eax, dword [ebx + 8]
mov dword [eax], esi
add eax, 4
mov dword [ebx + 8], eax
jmp 0x54b919
mov esi, dword [ebx + 8]
cmp edx, esi
jbe 0x54b8b0
call fcn.00578ff3
push esi
push ebx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
push ecx
jmp 0x54b912
mov edx, dword [ebx + 4]
test edx, edx
mov dword [esp + 0x14], 0
jne 0x54b8d1
xor ecx, ecx
jmp 0x54b8d9
mov ecx, dword [ebx + 8]
sub ecx, edx
sar ecx, 2
test edx, edx
je 0x54b8fa
mov eax, dword [ebx + 0xc]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x54b8fa
mov eax, dword [ebx + 8]
mov dword [eax], 0
add eax, 4
mov dword [ebx + 8], eax
jmp 0x54b919
mov esi, dword [ebx + 8]
cmp edx, esi
jbe 0x54b906
call fcn.00578ff3
push esi
push ebx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
mov eax, ebx
call fcn.0045a4c0
add dword [esp + 0x2c], 1
lea esi, [edi + 0x140]
mov eax, esi
call fcn.00548180
cmp dword [esp + 0x2c], eax
jl 0x54b7c2
mov eax, dword [edi + 0x154]
mov ecx, dword [edi + 0x150]
mov dword [ebp + 0x150], ecx
xor ebx, ebx
mov dword [ebp + 0x154], eax
mov edx, dword [edi + 0x158]
test edx, edx
setle bl
mov esi, dword [edi + 0x15c]
mov eax, dword [edi + 0x164]
mov ecx, dword [edi + 0x160]
sub ebx, 1
and ebx, edx
xor edx, edx
test esi, esi
setle dl
mov dword [ebp + 0x158], ebx
sub edx, 1
and edx, esi
mov dword [ebp + 0x15c], edx
xor edx, edx
test ecx, ecx
setle dl
sub edx, 1
and edx, ecx
xor ecx, ecx
test eax, eax
setle cl
mov dword [ebp + 0x160], edx
xor ebx, ebx
sub ecx, 1
and ecx, eax
mov dword [ebp + 0x164], ecx
mov edx, dword [edi + 0x168]
mov esi, dword [edi + 0x16c]
test edx, edx
setle bl
mov eax, dword [edi + 0x174]
mov ecx, dword [edi + 0x170]
sub ebx, 1
and ebx, edx
xor edx, edx
test esi, esi
setle dl
mov dword [ebp + 0x168], ebx
sub edx, 1
and edx, esi
mov dword [ebp + 0x16c], edx
xor edx, edx
test ecx, ecx
setle dl
sub edx, 1
and edx, ecx
xor ecx, ecx
test eax, eax
setle cl
mov dword [ebp + 0x170], edx
xor ebx, ebx
sub ecx, 1
and ecx, eax
mov dword [ebp + 0x174], ecx
mov edx, dword [edi + 0x178]
mov esi, dword [edi + 0x17c]
test edx, edx
mov ecx, dword [edi + 0x180]
setle bl
mov eax, dword [edi + 0x184]
sub ebx, 1
and ebx, edx
xor edx, edx
test esi, esi
setle dl
mov dword [ebp + 0x178], ebx
sub edx, 1
and edx, esi
mov dword [ebp + 0x17c], edx
xor edx, edx
test ecx, ecx
setle dl
sub edx, 1
and edx, ecx
xor ecx, ecx
test eax, eax
setle cl
mov dword [ebp + 0x180], edx
xor edx, edx
sub ecx, 1
and ecx, eax
mov dword [ebp + 0x184], ecx
mov ecx, dword [edi + 0x190]
mov esi, dword [edi + 0x18c]
mov eax, dword [edi + 0x194]
mov edi, dword [edi + 0x188]
test edi, edi
setle dl
sub edx, 1
and edx, edi
mov dword [ebp + 0x188], edx
xor edx, edx
test esi, esi
setle dl
pop edi
sub edx, 1
and edx, esi
mov dword [ebp + 0x18c], edx
xor edx, edx
test ecx, ecx
setle dl
pop esi
sub edx, 1
and edx, ecx
xor ecx, ecx
test eax, eax
setle cl
mov dword [ebp + 0x190], edx
sub ecx, 1
and ecx, eax
mov dword [ebp + 0x194], ecx
pop ebp
pop ebx
add esp, 0x18
ret 4