Function at 0x498071
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
cmp dword [ebx + 0xc], 0
je 0x49824b
mov ecx, dword [ebp + 0x14]
call fcn.00486e68
mov esi, dword [ebp + 0x10]
lea edi, [esp + 0x28]
movzx eax, al
mov dword [esp + 0x14], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x4980ba
mov ecx, dword [ebp + 0x14]
lea eax, [esp + 0x28]
push eax
call fcn.00487624
jmp 0x4980cd
push 2
push edi
call dword [sym.imp.GDI32.dll_SetGraphicsMode]
push dword [ebp + 0x14]
push edi
call dword [sym.imp.GDI32.dll_SetWorldTransform]
cmp dword [ebx + 0x14], 0
je 0x498201
push dword [ebx + 0x18]
lea ecx, [esp + 0x1c]
call fcn.0048a832
mov eax, dword [ebx + 0x34]
cmp eax, dword [ebx + 0x2c]
jle 0x498102
push ecx
push dword [ebx + 0x24]
lea ecx, [ebx + 0x18]
push dword [ebx + 0x20]
push 0
push 0
call fcn.004880ad
or dword [ebx + 0x34], 0xffffffff
mov eax, dword [ebx + 0x34]
cmp eax, dword [ebx + 0x2c]
jge 0x4981aa
mov dword [esp + 0x10], 0x1ff0000
mov ecx, dword [ebx + 0x34]
cmp ecx, 0xffffffff
je 0x49814c
mov eax, dword [ebx + 0x14]
shl ecx, 5
add ecx, dword [eax + 0x10c]
cmp dword [ecx + 0xc], 2
jne 0x49814c
movzx eax, word [ecx + 6]
push ecx
push eax
movzx eax, word [ecx + 4]
push eax
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
lea ecx, [ebx + 0x18]
push eax
call fcn.004880ad
inc dword [ebx + 0x34]
lea ecx, [esp + 0x20]
mov eax, dword [ebx + 0x14]
mov esi, dword [ebx + 0x34]
shl esi, 5
add esi, dword [eax + 0x10c]
push dword [esi + 0x10]
call fcn.0048a832
push dword [esp + 0x10]
movzx eax, word [esi + 6]
movzx ecx, word [esi + 4]
push eax
push ecx
push 0
push 0
push dword [esp + 0x34]
push eax
movzx eax, word [esi + 2]
push ecx
push eax
movzx eax, word [esi]
push eax
push dword [esp + 0x40]
call dword [sym.imp.GDI32.dll_GdiAlphaBlend]
lea ecx, [esp + 0x20]
call fcn.0048a86e
mov eax, dword [ebx + 0x34]
cmp eax, dword [ebx + 0x2c]
jl 0x498116
mov ecx, dword [ebx + 0x14]
xor ebx, ebx
mov al, byte [ebp + 0x18]
mov byte [esp + 0x12], al
mov word [esp + 0x10], 0
movzx eax, word [ecx + 2]
mov byte [esp + 0x13], 1
push dword [esp + 0x10]
push eax
movzx eax, word [ecx]
push eax
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
push ebx
push ebx
push dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
push eax
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push edi
call dword [sym.imp.GDI32.dll_GdiAlphaBlend]
lea ecx, [esp + 0x18]
call fcn.0048a86e
jmp 0x498231
mov ecx, dword [ebx + 0xc]
xor ebx, ebx
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
push ebx
push dword [ebp + 0x18]
mov edx, dword [ecx]
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
push ebx
push eax
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
push eax
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push edi
push ecx
call dword [edx + 0x14]
cmp dword [esp + 0x14], 0
jne 0x49824b
push 1
push ebx
push edi
call dword [sym.imp.GDI32.dll_ModifyWorldTransform]
push 1
push edi
call dword [sym.imp.GDI32.dll_SetGraphicsMode]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14