Function at 0x59cb4c
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0xc], 0
push esi
push edi
je 0x59cdff
mov ecx, dword [ebp + 0x14]
fld dword [ecx + 4]
fldz
fld st(0)
fucomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x44
jp 0x59cba2
fld dword [ecx + 8]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jp 0x59cba2
fcom dword [ecx]
fnstsw ax
test ah, 0x41
jp 0x59cba2
fcomp dword [ecx + 0xc]
fnstsw ax
test ah, 0x41
jp 0x59cba4
mov eax, 1
jmp 0x59cba6
fstp st(0)
xor eax, eax
movzx edx, al
mov eax, dword [ebp + 0x10]
mov esi, dword [eax]
mov edi, dword [eax + 8]
mov dword [esp + 0x28], esi
mov esi, dword [eax + 4]
mov dword [esp + 0x2c], esi
mov esi, dword [eax + 0xc]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], esi
test edx, edx
je 0x59cbe2
lea edx, [esp + 0x28]
call fcn.0058fce9
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
jmp 0x59cbfc
mov eax, dword [ebp + 0xc]
push 2
push eax
call dword [sym.imp.GDI32.dll_SetGraphicsMode]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetWorldTransform]
cmp dword [ebx + 0x14], 0
push 0
je 0x59cdb6
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x10], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0xc]
push ecx
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebx + 0x34]
mov dword [esp + 0x24], eax
cmp edx, dword [ebx + 0x2c]
jle 0x59cc85
cmp dword [ebx + 0x1c], 0
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x20]
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], ecx
je 0x59cc7e
cmp ecx, ecx
jg 0x59cc7e
cmp eax, eax
jg 0x59cc7e
xor edx, edx
test eax, eax
jle 0x59cc7e
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x1c]
imul eax, edx
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], eax
test ecx, ecx
jle 0x59cc77
mov edi, dword [esp + 0x10]
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x30]
inc edx
cmp edx, dword [esp + 0x18]
jl 0x59cc53
mov dword [ebx + 0x34], 0xffffffff
mov ecx, dword [ebx + 0x34]
cmp ecx, dword [ebx + 0x2c]
jge 0x59cd56
mov dword [esp + 0xc], 0x1ff0000
mov eax, dword [ebx + 0x34]
cmp eax, 0xffffffff
je 0x59ccce
mov edx, dword [ebx + 0x14]
shl eax, 5
add eax, dword [edx + 0x10c]
mov ecx, eax
cmp dword [ecx + 0xc], 2
jne 0x59ccce
movzx eax, word [ecx + 6]
movzx edx, word [ecx + 2]
push eax
movzx eax, word [ecx + 4]
push edx
movzx edx, word [ecx]
lea esi, [ebx + 0x18]
call fcn.0059095a
inc dword [ebx + 0x34]
mov edi, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x14]
shl edi, 5
add edi, dword [ecx + 0x10c]
push 0
mov edx, dword [edi + 0x10]
mov dword [esp + 0x1c], edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
mov eax, dword [esp + 0x18]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
movzx ecx, word [edi + 4]
mov edx, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x18], eax
movzx eax, word [edi + 6]
push eax
push ecx
push 0
push 0
push esi
push eax
movzx eax, word [edi + 2]
push ecx
movzx ecx, word [edi]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_GdiAlphaBlend]
mov eax, dword [esp + 0x14]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
test esi, esi
je 0x59cd42
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [ebx + 0x34]
cmp ecx, dword [ebx + 0x2c]
jl 0x59cc99
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
mov ebx, dword [ebx + 0x14]
mov dl, byte [ebp + 0x18]
movzx ecx, word [ebx + 2]
mov byte [esp + 0xe], dl
movzx edx, word [ebx]
mov ebx, dword [esp + 0x20]
mov word [esp + 0xc], 0
mov byte [esp + 0xf], 1
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push 0
push 0
push ebx
sub esi, eax
push esi
mov esi, dword [ebp + 0xc]
sub edi, ecx
push edi
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_GdiAlphaBlend]
mov eax, dword [esp + 0x24]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
test ebx, ebx
je 0x59cde4
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x59cde4
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [ebx + 0xc]
mov edx, dword [ebx]
push eax
mov eax, dword [esp + 0x34]
mov edx, dword [edx + 0x14]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0
sub esi, eax
push esi
sub edi, ecx
push edi
push eax
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
push ebx
call edx
mov esi, dword [ebp + 0xc]
cmp dword [esp + 0x1c], 0
jne 0x59cdff
push 1
push 0
push esi
call dword [sym.imp.GDI32.dll_ModifyWorldTransform]
push 1
push esi
call dword [sym.imp.GDI32.dll_SetGraphicsMode]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14