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

Disassembly:
push edi
push esi
push ebp
push ebx
push ecx
mov eax, 0x4c
call fcn.006021b0
mov ecx, dword [esp + 0x4c]
mov ebx, ecx
mov edx, dword [ebx]
mov ecx, dword [edx + 0x3d]
mov dword [ebx + 8], ecx
mov eax, dword [edx + 0x111]
test eax, eax
je 0x5a38e2
mov edx, dword [0x74c222]
mov eax, dword [edx + 4]
mov dword [esp + 0x14], eax
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
xor edx, edx
push 0x50
push edx
push edx
push edx
push dword [eax + 0x111]
push dword [0x74c31c]
call dword [sym.imp.USER32.dll_LoadImageA]
mov edi, eax
lea edx, [esp + 0x28]
push edx
push 0x18
push edi
call dword [sym.imp.GDI32.dll_GetObjectA]
push edi
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebx + 8]
movzx ebp, word [edx + 0x28]
add ebp, dword [edx + 0x14]
movsx esi, bp
mov ebp, dword [edx + 0x18]
add ebp, dword [edx + 0x20]
movzx edx, word [edx + 0x24]
sub ebp, edx
mov ecx, dword [ebx]
mov ebx, dword [ecx]
call dword [ebx + 0x2c]
mov edx, dword [eax + 0x49]
add esi, dword [edx + 0xc]
add ebp, dword [edx + 0x10]
mov edx, dword [edx + 0x1c]
movzx edx, word [edx]
sub edx, ebp
and edx, 0xffff
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
xor ebx, ebx
push 0xcc0020
push ecx
push ebp
push ebx
push ebx
mov ebx, dword [esp + 0x2c]
push ebx
push ecx
push ebp
push edx
push esi
mov esi, dword [esp + 0x3c]
push esi
call dword [sym.imp.GDI32.dll_StretchBlt]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
add esp, 0x50
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x5a38f1
add esp, 0x50
pop ebx
pop ebp
pop esi
pop edi
ret
mov esi, dword [ebx + 0x1c]
mov ebp, 0
jle 0x5a392f
mov edx, dword [ebx + 0x10]
xor edi, edi
test edx, edx
jle 0x5a3925
mov eax, dword [esi]
test eax, eax
je 0x5a3911
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi], 0
add esi, 4
mov edx, dword [ebx + 0x10]
inc edi
cmp edi, edx
jl 0x5a3904
mov eax, dword [ebx + 0xc]
inc ebp
cmp ebp, eax
jl 0x5a38fe
mov ecx, dword [ebx + 8]
mov edx, dword [ebx]
mov edx, dword [edx + 0x29]
mov eax, dword [ebx + 0x4c]
push dword [edx + 0x6b]
push eax
push dword [ebx + 0x44]
push eax
push dword [ebx + 0x40]
call fcn.00565390
mov eax, dword [ebx + 0x50]
cmp eax, dword [ebx + 0x4c]
je 0x5a3965
mov ebp, dword [ebx]
mov edx, dword [ebp + 0x29]
push dword [edx + 0x6b]
push eax
push dword [ebx + 0x44]
push eax
push dword [ebx + 0x40]
mov ecx, dword [ebx + 8]
call fcn.00565390
mov ebp, dword [ebx + 0x58]
test ebp, ebp
jle 0x5a3a6a
add ebp, 0x80000000
adc ebp, 0x80000000
sar ebp, 1
add ebp, dword [ebx + 0x40]
mov eax, dword [ebx + 0x4c]
mov dword [esp + 0x20], eax
mov esi, dword [ebx + 0x54]
neg esi
add esi, eax
movsx edx, si
mov dword [esp + 0x44], edx
mov eax, dword [ebx + 0x80]
neg eax
add eax, edx
movsx ecx, ax
mov dword [esp + 0x4c], ecx
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0xc]
mov edi, dword [eax + 0xc]
mov dword [esp + 0x40], edi
mov edi, dword [eax + 0xc]
mov dword [esp + 0x48], edi
mov edi, dword [eax + 0x10]
add ecx, edi
mov dword [esp + 0x4c], ecx
add edx, edi
mov dword [esp + 0x44], edx
mov eax, dword [eax + 0x1c]
movzx edi, word [eax]
sub edi, edx
and edi, 0xffff
mov dword [esp + 0x44], edi
movzx edi, word [eax]
sub edi, ecx
and edi, 0xffff
mov dword [esp + 0x4c], edi
xor edi, edi
mov eax, dword [ebx + 0xc]
test eax, eax
jle 0x5a3a6a
mov ecx, dword [esp + 0x20]
jmp 0x5a3a07
mov ecx, dword [ebx + 0x4c]
mov eax, dword [ebx]
mov edx, dword [eax + 0x29]
push dword [edx + 0x6b]
push esi
push ebp
push ecx
push ebp
mov ecx, dword [ebx + 8]
call fcn.00565390
mov edx, dword [ebx + 0x70]
mov eax, edx
add eax, 0x80000000
adc eax, 0x80000000
sar eax, 1
neg eax
add eax, ebp
movsx eax, ax
mov dword [esp + 0x40], eax
add eax, edx
movsx eax, ax
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0x14]
mov edx, dword [eax + edi*4]
lea eax, [esp + 0x40]
push 3
push dword [ebx + 0x88]
push dword [ebx + 0x7c]
push eax
push dword [edx + 0x31]
mov ecx, dword [ebx + 8]
call fcn.005656a4
add ebp, dword [ebx + 0x58]
inc edi
cmp edi, dword [ebx + 0xc]
jl 0x5a3a04
mov ecx, ebx
call fcn.005a3c24
mov eax, dword [ebx + 0x70]
test eax, eax
je 0x5a3bca
mov ebp, dword [ebx + 0x74]
test ebp, ebp
jle 0x5a3bca
mov esi, dword [ebx + 0x58]
mov edx, esi
add edx, 0x80000000
adc edx, 0x80000000
sar edx, 1
add edx, dword [ebx + 0x40]
add eax, 0x80000000
adc eax, 0x80000000
sar eax, 1
sub edx, eax
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x1c], eax
xor eax, eax
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jle 0x5a3bca
mov edi, dword [ebx + 0x10]
mov dword [esp + 0x20], edi
mov dword [esp + 8], ebp
mov dword [esp + 4], ebx
mov ebp, edx
xor ebx, ebx
xor edi, edi
mov dword [esp], edi
mov edi, dword [esp + 0x20]
test edi, edi
jle 0x5a3bbf
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 4]
mov esi, dword [eax + 0x18]
mov esi, dword [esi + edi*4]
mov edx, dword [eax + 0x78]
push 0
push 0x186a0
push dword [edx + edi*8 + 4]
push dword [edx + edi*8]
call fcn.00602520
mov edx, dword [ebx*4 + 0x664d40]
mov dword [esp + 0x14], edx
inc ebx
cmp ebx, 6
jne 0x5a3b28
xor ebx, ebx
test esi, esi
je 0x5a3b8c
test byte [esi + 0x83], 1
je 0x5a3b8c
test eax, eax
jl 0x5a3bd2
jle 0x5a3b8c
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], ebx
mov esi, dword [esp + 4]
mov edi, dword [esi]
mov edi, dword [edi + 0x29]
mov ebx, dword [esi + 0x50]
mov edx, dword [esp + 8]
add edx, ebp
add eax, ebx
mov ecx, dword [esp + 0x1c]
push ecx
push dword [edi + 0x6b]
mov ecx, dword [esp + 0x1c]
push ecx
push eax
push edx
push ebx
push ebp
mov ecx, dword [esi + 8]
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x34]
call fcn.00565434
mov edx, esi
mov eax, dword [edx + 0x74]
mov dword [esp + 8], eax
mov ecx, dword [edx + 0x10]
mov dword [esp + 0x20], ecx
add ebp, dword [esp + 8]
inc edi
add dword [esp + 0x1c], 4
mov eax, dword [esp]
inc eax
mov dword [esp], eax
mov edx, dword [esp + 0x20]
cmp eax, edx
jl 0x5a3af5
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 4]
mov ecx, dword [ebx + 0xc]
mov esi, dword [ebx + 0x58]
add edx, esi
inc eax
cmp eax, ecx
jl 0x5a3ad4
add esp, 0x50
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], ebx
mov esi, dword [esp + 4]
mov edi, dword [esi]
mov edi, dword [edi + 0x29]
mov edx, dword [esi + 0x50]
add eax, edx
mov ebx, dword [esp + 8]
add ebx, ebp
mov ecx, dword [esp + 0x1c]
push ecx
push dword [edi + 0x6b]
mov ecx, dword [esp + 0x1c]
push ecx
push edx
push ebx
push eax
push ebp
mov ecx, dword [esi + 8]
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x34]
call fcn.00565434
mov edx, esi
mov eax, dword [edx + 0x74]
mov dword [esp + 8], eax
mov ecx, dword [edx + 0x10]
mov dword [esp + 0x20], ecx
jmp 0x5a3b8c