Function at 0x418c60
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x30
push ebx
push esi
mov ebx, dword [esp + 0x40]
push edi
push ebp
xor edi, edi
mov eax, dword [ebx + 0x14]
xor ebp, ebp
push eax
call fcn.004d53f0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
mov word [esp + 0x16], 0xfffe
add esp, 4
cmp dword [esp + 0x4c], edi
je 0x418f10
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x44]
push 0x3e
push 0x18
mov dword [eax], edi
mov ecx, dword [esi + 0x44]
push ecx
push esi
call fcn.004aa140
add esp, 0x10
mov ebp, eax
cmp ebp, edi
je 0x418f14
mov eax, dword [esp + 0x50]
push 0x3e
push eax
mov dword [ebp + 4], ebx
mov ecx, dword [esi + 0x44]
push ecx
push esi
call fcn.004aa900
add esp, 0x10
mov dword [ebp + 8], eax
cmp eax, edi
je 0x418f14
mov ax, word [ebx + 0x50]
cmp ax, 1
jg 0x418ce9
mov ax, 1
mov word [ebp + 0x14], ax
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x4c], 0
je 0x418d92
lea edi, [esp + 0x24]
xor eax, eax
mov ecx, 7
rep stosd dword es:[edi], eax
mov word [esp + 0x24], 0x1c
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov word [esp + 0x26], 0x222
mov al, byte [ebx + 0x10]
test al, al
je 0x418d2f
mov dword [esp + 0x30], ecx
mov ecx, dword [ebx + 0x28]
test ecx, ecx
jne 0x418d39
mov ecx, dword [ebp + 8]
mov dx, word [ebx + 0x50]
mov dword [esp + 0x34], ecx
mov word [esp + 0x3e], dx
mov ecx, dword [ebx + 0x2c]
cmp word [esp + 0x54], 0
mov dword [esp + 0x38], ecx
je 0x418d5a
or byte [esp + 0x3c], 1
lea ecx, [esp + 0x24]
cmp al, 1
sbb al, al
mov edx, dword [ebx]
neg al
push eax
push 0
mov eax, dword [esp + 0x20]
push ecx
push ebp
push edx
mov ecx, dword [eax + 0x14]
mov edx, dword [ebx + 0x14]
push ecx
push 2
push 0x10
push edx
call fcn.004d52d0
mov word [esp + 0x36], ax
add esp, 0x24
test ax, ax
jl 0x418f14
lea eax, [esp + 0x1c]
xor edi, edi
lea ecx, [esp + 0x14]
mov dword [eax], edi
push ecx
mov dword [eax + 4], edi
mov dword [esp + 0x24], 0xb
mov word [esp + 0x20], 8
mov word [esp + 0x22], 0x222
lea eax, [esp + 0x20]
push eax
push ebp
push esi
call fcn.00419050
mov word [esp + 0x22], ax
add esp, 0x10
cmp ax, di
jne 0x418efd
mov eax, dword [esp + 0x14]
push 0x3e
mov ax, word [eax + 4]
mov word [ebp + 0xc], ax
shl ax, 2
mov ecx, dword [esi + 0x44]
push eax
push ecx
push esi
call fcn.004aa140
add esp, 0x10
mov dword [ebp + 0x10], eax
cmp eax, edi
je 0x418f14
mov word [esp + 0x18], di
cmp word [ebp + 0xc], di
jle 0x418ec1
push 0x3e
mov ecx, dword [esi + 0x44]
movsx eax, word [esp + 0x1c]
push 0xc
push ecx
lea edi, [eax*4]
push esi
call fcn.004aa140
add esp, 0x10
mov ecx, dword [ebp + 0x10]
mov dword [ecx + edi], eax
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ecx + edi]
test ebx, ebx
je 0x418f14
mov eax, dword [esp + 0x14]
push 0x3e
mov ecx, dword [eax + 8]
mov edx, dword [ecx + edi]
mov ecx, dword [esi + 0x44]
mov eax, dword [edx]
push eax
push ecx
push esi
call fcn.004aa900
add esp, 0x10
mov dword [ebx], eax
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx + edi]
cmp dword [ecx], 0
je 0x418f14
inc word [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 8]
mov ebx, dword [edx + edi]
mov ax, word [ebx + 4]
mov word [ecx + 4], ax
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp + 0x10]
mov edx, dword [ecx + 8]
mov ebx, dword [edx + edi]
mov edx, dword [eax + edi]
mov ecx, dword [ebx + 8]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 8]
mov edx, dword [eax + edi]
mov eax, dword [ebp + 0x10]
mov cx, word [edx + 6]
mov edx, dword [eax + edi]
mov word [edx + 6], cx
mov cx, word [esp + 0x18]
cmp word [ebp + 0xc], cx
jg 0x418e0f
mov eax, dword [esp + 0x14]
movsx ecx, word [eax]
cmp ecx, 0xc
jbe 0x418ee8
mov ax, word [eax + 0xc]
test ax, ax
jle 0x418eee
mov cx, word [ebp + 0x14]
cmp cx, ax
jl 0x418ee2
mov cx, ax
mov word [ebp + 0x14], cx
jmp 0x418eee
mov word [ebp + 0x14], 1
mov eax, dword [esp + 0x14]
push eax
push ebp
push esi
call fcn.00419140
add esp, 0xc
mov eax, dword [esp + 0x4c]
mov dword [eax], ebp
mov ax, word [esp + 0x12]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x30
ret
mov esi, dword [esp + 0x44]
test ebp, ebp
je 0x418f3f
cmp dword [esp + 0x14], 0
je 0x418f2e
mov eax, dword [esp + 0x14]
push eax
push ebp
push esi
call fcn.00419140
add esp, 0xc
push ebp
mov dword [ebp], 0
push esi
call fcn.00418f50
add esp, 8
mov ax, word [esp + 0x12]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x30
ret