Function at 0x104ea760
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x80
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebp
push esi
push edi
mov ebp, ecx
mov eax, 0xffff
mov ecx, dword [esp + 0x90]
or edi, 0xffffffff
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
push ebx
mov edx, dword [ecx]
movzx eax, word [ecx + 8]
cmp ax, word [edx + 0x18c57a8]
jae 0x104eab88
mov bx, word [esp + 0x98]
cmp word [ecx + 6], bx
ja 0x104eab88
movzx esi, word [ecx + 4]
inc eax
mov word [ecx + 8], ax
add esi, 0x52b5d
movzx eax, ax
shl esi, 6
add esi, edx
mov eax, dword [edx + eax*4 + 0x14ac700]
mov word [ecx + 4], ax
shr eax, 0x18
mov word [ecx + 6], ax
movzx ecx, word [esi + 0x14]
movzx eax, word [esi + 0x18]
mov ebx, ecx
shl eax, 7
add eax, ebp
shl ebx, 7
mov dword [esp + 0x1c], eax
add ebx, ebp
mov eax, dword [esp + 0x14]
cmp ax, cx
je 0x104ea967
cmp edi, 0xffffffff
je 0x104ea879
mov edx, dword [ebp + 0xa570]
movzx eax, ax
shl eax, 7
add eax, ebp
mov dword [esp + 0x14], eax
mov ecx, dword [eax + 0x11ee34]
cmp ecx, edi
je 0x104ea879
mov eax, dword [eax + 0x11ee28]
mov dword [esp + 0x84], ecx
lea ecx, [esp + 0x74]
push ecx
mov dword [esp + 0x80], eax
mov eax, dword [edx]
push 1
push edx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x8c], 0xffffffff
mov dword [esp + 0x94], edi
call dword [eax + 0x68]
mov eax, dword [esp + 0x14]
mov dword [eax + 0x11ee34], edi
cmp word [esi + 0x16], 8
jne 0x104ea88a
movzx ecx, word [esi + 0x14]
mov dword [esp + 0x14], ecx
jmp 0x104ea892
mov dword [esp + 0x14], 0xffff
mov eax, dword [ebx + 0x11ee2c]
test eax, eax
je 0x104ea8ed
mov ecx, dword [ebp + 0xa570]
lea edx, [esp + 0x74]
push edx
mov dword [esp + 0x80], eax
push 1
mov eax, dword [ecx]
push ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x8c], 0xffffffff
mov dword [esp + 0x90], 0x80
mov dword [esp + 0x94], 0x800
call dword [eax + 0x68]
mov ecx, dword [ebx + 0x11ee34]
mov eax, 0x800
mov edx, dword [ebp + 0xa570]
mov dword [esp + 0x18], eax
cmp ecx, eax
je 0x104ea967
mov eax, dword [ebx + 0x11ee28]
mov dword [esp + 0x84], ecx
lea ecx, [esp + 0x74]
push ecx
mov dword [esp + 0x80], eax
mov eax, dword [edx]
push 1
push edx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x8c], 0xffffffff
mov dword [esp + 0x94], 0x800
call dword [eax + 0x68]
mov eax, dword [ebx + 0x11ee34]
mov dword [esp + 0x18], eax
mov dword [ebx + 0x11ee34], 0x800
mov al, byte [ebx + 0x11ee52]
movzx ecx, word [esi]
cmp al, 1
movzx edx, word [esi + 2]
mov byte [esp + 0x13], al
movzx eax, word [esi + 0xc]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
jne 0x104eaa2f
add eax, ecx
movzx edi, word [esi + 4]
mov dword [esp + 0x80], eax
movzx eax, word [esi + 0xe]
add eax, edx
mov dword [esp + 0x7c], edi
mov dword [esp + 0x84], eax
movzx eax, word [esi + 0x10]
mov dword [esp + 0x50], 0
mov dword [esp + 0x28], 0
lea edx, [eax - 1]
sar edx, 0x1f
mov ecx, edx
and edx, 1
not ecx
and ecx, eax
mov eax, dword [esp + 0x1c]
or ecx, edx
add ecx, edi
mov dword [esp + 0x88], ecx
mov eax, dword [eax + 0x11ee28]
mov ecx, dword [ebp + 0xa570]
mov dword [esp + 0x4c], eax
movzx eax, byte [esi + 0x13]
mov dword [esp + 0x54], eax
mov eax, dword [ebx + 0x11ee28]
mov dword [esp + 0x24], eax
movzx eax, byte [esi + 0x12]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x74]
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x28]
push eax
movzx eax, word [esi + 0xa]
push eax
movzx eax, word [esi + 8]
push eax
movzx eax, word [esi + 6]
push eax
lea eax, [esp + 0x60]
push eax
push ecx
call dword [edx + 0x40]
jmp 0x104eab18
add eax, ecx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], eax
movzx eax, word [esi + 0xe]
add eax, edx
mov dword [esp + 0x88], 1
cmp byte [esp + 0x13], 2
mov dword [esp + 0x84], eax
jne 0x104eaa65
movzx edi, word [esi + 4]
jmp 0x104eaa67
xor edi, edi
mov ecx, dword [esp + 0x1c]
cmp byte [ecx + 0x11ee52], 2
jne 0x104eaa7a
movzx edx, word [esi + 0xa]
jmp 0x104eaa7c
xor edx, edx
mov eax, dword [ecx + 0x11ee28]
movzx ecx, byte [ecx + 0x11ee55]
imul ecx, edx
mov dword [esp + 0x4c], eax
movzx eax, byte [esi + 0x13]
mov dword [esp + 0x50], 0
add ecx, eax
mov eax, dword [ebx + 0x11ee2c]
mov dword [esp + 0x54], ecx
test eax, eax
jne 0x104eaab2
mov eax, dword [ebx + 0x11ee28]
movzx ecx, byte [ebx + 0x11ee55]
imul ecx, edi
mov dword [esp + 0x24], eax
movzx eax, byte [esi + 0x12]
mov dword [esp + 0x28], 0
add ecx, eax
movzx eax, byte [ebx + 0x11ee54]
push eax
mov dword [esp + 0x30], ecx
call fcn.104fddc0
mov edx, dword [ebp + 0xa570]
lea ecx, [esp + 0x78]
add esp, 4
mov dword [esp + 0x1c], 0
test al, al
lea eax, [esp + 0x24]
cmovne ecx, dword [esp + 0x1c]
mov edi, dword [edx]
push ecx
push eax
movzx eax, word [esi + 8]
push 0
push eax
movzx eax, word [esi + 6]
push eax
lea eax, [esp + 0x60]
push eax
push edx
call dword [edi + 0x40]
mov eax, dword [ebx + 0x11ee2c]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
test eax, eax
je 0x104ea792
mov ecx, dword [ebp + 0xa570]
lea edx, [esp + 0x74]
push edx
mov dword [esp + 0x80], eax
push 1
mov eax, dword [ecx]
push ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x8c], 0xffffffff
mov dword [esp + 0x90], 0x800
mov dword [esp + 0x94], 0x80
call dword [eax + 0x68]
mov ecx, dword [esp + 0x20]
jmp 0x104ea792
mov eax, dword [esp + 0x14]
mov ecx, 0xffff
pop ebx
cmp cx, ax
je 0x104eabb6
cmp edi, 0xffffffff
je 0x104eabb6
movzx ecx, ax
shl ecx, 7
push edi
push dword [ebp + 0xa570]
add ecx, 0x11edd8
add ecx, ebp
call fcn.104dd080
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.105116c0
add esp, 0x80
ret 8