Function at 0x10049cf0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xa5c
push ebx
mov ebx, dword [esp + 0xa68]
push ebp
push esi
mov eax, dword [ebx + 0x20]
xor esi, esi
mov dword [ebx + 0x30], esi
push edi
cmp byte [eax + 0xc], 1
jne 0x10049d16
mov dword [ebx + 0x30], 1
mov eax, dword [esp + 0xa70]
mov ebp, dword [ebx + 0x24]
mov dword [esp + 0x54], esi
mov dword [esp + 0x5c], ebp
mov ecx, dword [eax + 0x58]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 0x38]
cmp ecx, esi
jle 0x1004a4d9
mov dword [esp + 0x44], esi
mov edx, dword [ebx + 0x20]
mov ecx, dword [esp + 0x44]
mov edi, dword [edx + 0x14]
add edi, ecx
mov dword [esp + 0x28], edi
mov al, byte [edi + 8]
test al, al
jne 0x10049d5c
mov dword [ebx + 0x30], 1
xor eax, eax
mov al, byte [edi + 5]
mov dword [ebp + 0x14], eax
lea ecx, [eax*8]
sub ecx, eax
shl ecx, 3
push ecx
call fcn.10025380
add esp, 4
mov dword [ebp + 0x18], eax
test eax, eax
je 0x1004a4ea
mov eax, dword [esp + 0x30]
mov edx, dword [ebx + 0x10]
mov ecx, dword [eax + 4]
mov esi, dword [eax]
lea eax, [edx + ecx - 1]
xor edx, edx
div ecx
xor edx, edx
push eax
mov eax, dword [ebx + 0xc]
lea eax, [eax + esi - 1]
div esi
mov edx, dword [ebx + 8]
push eax
lea eax, [edx + ecx - 1]
xor edx, edx
div ecx
xor edx, edx
push eax
mov eax, dword [ebx + 4]
lea eax, [eax + esi - 1]
div esi
push eax
call fcn.10021670
add esp, 0x10
mov dword [ebp + 0x10], eax
test eax, eax
je 0x1004a4ea
mov ecx, dword [ebp + 0x14]
xor edx, edx
mov dl, byte [edi + 8]
dec ecx
push ecx
push edx
call fcn.1005b980
add esp, 8
mov dword [ebp + 0x1c], eax
test eax, eax
je 0x1004a4ea
mov eax, dword [ebp + 0x10]
lea ecx, [esp + 0x6c]
push ecx
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0xc]
push edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
push eax
push ecx
call fcn.1005b270
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
add esp, 0x18
xor esi, esi
test eax, eax
mov dword [esp + 0x24], esi
jle 0x1004a49a
jmp 0x10049e2c
mov esi, dword [esp + 0x24]
mov dword [edi + 4], 0
mov eax, dword [ebp + 0x14]
sub eax, esi
mov edx, 1
lea ecx, [eax - 1]
shl edx, cl
mov ecx, dword [ebp]
lea edx, [edx + ecx - 1]
lea ecx, [eax - 1]
shr edx, cl
mov dword [edi + 8], edx
mov eax, dword [ebp + 0x14]
sub eax, esi
mov edx, 1
mov ebx, dword [edi + 8]
lea ecx, [eax - 1]
shl edx, cl
mov ecx, dword [ebp + 4]
lea edx, [edx + ecx - 1]
lea ecx, [eax - 1]
shr edx, cl
mov dword [edi + 0xc], edx
mov eax, dword [ebp + 0x14]
sub eax, esi
mov edx, 1
lea ecx, [eax - 1]
shl edx, cl
mov ecx, dword [ebp + 8]
lea edx, [edx + ecx - 1]
lea ecx, [eax - 1]
shr edx, cl
mov dword [edi + 0x10], edx
mov eax, dword [ebp + 0x14]
sub eax, esi
mov edx, 1
lea ecx, [eax - 1]
shl edx, cl
mov ecx, dword [ebp + 0xc]
lea edx, [edx + ecx - 1]
lea ecx, [eax - 1]
mov eax, dword [esp + 0x28]
shr edx, cl
xor ecx, ecx
mov dword [edi + 0x14], edx
mov cl, byte [eax + esi + 0xd7]
xor edx, edx
mov dword [edi + 0x18], ecx
mov dl, byte [eax + esi + 0xf8]
shr ebx, cl
mov eax, edx
mov edx, dword [edi + 0xc]
mov dword [esp + 0x10], eax
mov dword [edi + 0x1c], eax
mov eax, ecx
shl ebx, cl
mov ecx, dword [esp + 0x10]
shr edx, cl
shl edx, cl
mov ecx, eax
mov dword [esp + 0x14], edx
mov edx, 1
shl edx, cl
mov ecx, dword [edi + 0x10]
lea edx, [edx + ecx - 1]
mov ecx, eax
shr edx, cl
mov eax, 1
shl edx, cl
mov dword [esp + 0x10], edx
sub edx, ebx
shr edx, cl
mov ecx, dword [edi + 0x1c]
shl eax, cl
mov ecx, dword [edi + 0x14]
mov dword [edi + 0x20], edx
lea eax, [eax + ecx - 1]
mov ecx, dword [edi + 0x1c]
shr eax, cl
shl eax, cl
sub eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x1c]
shr eax, cl
mov ecx, dword [edi + 0x10]
mov dword [edi + 0x24], eax
imul eax, edx
mov dword [edi + 0x28], eax
mov eax, dword [edi + 8]
cmp eax, ecx
jae 0x1004a46e
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 0x14]
cmp edx, eax
jae 0x1004a46e
test esi, esi
jne 0x10049f72
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x18]
mov dword [esp + 0x58], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x50], ecx
mov dword [edi + 0x2c], edx
mov dword [edi + 0x30], eax
jmp 0x10049fa3
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea eax, [ebx + 1]
shr eax, 1
mov dword [esp + 0x38], eax
lea eax, [ecx + 1]
shr eax, 1
mov ecx, dword [edi + 0x1c]
mov dword [esp + 0x58], eax
lea eax, [edx + 1]
shr eax, 1
mov dword [esp + 0x50], eax
mov eax, dword [edi + 0x18]
dec eax
dec ecx
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], ecx
mov edx, dword [esp + 0x28]
mov ecx, dword [edi + 0x2c]
xor eax, eax
mov al, byte [edx + 6]
cmp eax, ecx
jl 0x10049fb5
mov eax, ecx
mov ecx, dword [edi + 0x30]
mov word [edi + 0x34], ax
xor eax, eax
mov al, byte [edx + 7]
cmp eax, ecx
jl 0x10049fc7
mov eax, ecx
neg esi
sbb esi, esi
mov word [edi + 0x36], ax
and esi, 2
inc esi
mov dword [edi], esi
shl esi, 5
push esi
call fcn.10025380
add esp, 4
mov dword [edi + 4], eax
test eax, eax
je 0x1004a4ea
mov edx, eax
mov eax, dword [edi]
test eax, eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x18], edx
jle 0x1004a47c
mov eax, edx
lea ebx, [eax + 4]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1004a020
mov ecx, dword [esp + 0x4c]
lea edx, [ecx + eax*2]
lea eax, [eax + edx - 2]
lea ecx, [eax + eax*4]
mov edx, dword [esp + ecx*8 + 0x7c]
lea esi, [esp + ecx*8 + 0x6c]
mov ecx, dword [esp + 0x28]
mov dword [ebx + 4], edx
xor edx, edx
mov dx, word [ecx + eax*2 + 0xc]
mov eax, dword [ebx + 4]
mov dword [ebx + 8], edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [ebp + 0x14]
push edx
xor edx, edx
mov dl, byte [ecx + 8]
dec eax
push eax
push edx
call fcn.10059e10
mov edx, dword [esp + 0x40]
xor ecx, ecx
mov dword [ebx + 0x14], eax
mov cx, word [edx + 0x10]
add ecx, eax
mov eax, dword [ebx + 8]
push ecx
push eax
call fcn.1004b900
mov ecx, dword [esp + 0x40]
mov edx, dword [ebx + 8]
mov dword [ebx + 0xc], eax
xor eax, eax
mov al, byte [ecx + 0xd4]
add esp, 0x18
sar edx, 0xb
lea eax, [edx + eax - 1]
xor edx, edx
mov dword [ebx + 0x10], eax
mov dl, byte [ecx + 0xd5]
mov ecx, edx
add eax, ecx
cmp eax, 0x20
jl 0x1004a0a8
mov eax, dword [ebx + 0x10]
mov ecx, 0x1f
sub ecx, eax
mov dword [ebx + 0x18], ecx
mov ecx, dword [esp + 0x18]
mov dword [ebx], 0
mov dword [ecx], 0
mov edx, dword [esi]
cmp edx, dword [esi + 8]
je 0x1004a447
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
je 0x1004a447
push 0
push 0
push 0
push 0
call fcn.10021670
add esp, 0x10
mov dword [ebx], eax
test eax, eax
je 0x1004a4ea
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push edx
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebx]
push ecx
push edx
push eax
call fcn.100217d0
mov ecx, dword [ebx]
mov edx, dword [esi]
mov dword [ecx + 4], edx
mov eax, dword [ebx]
mov ecx, dword [esi + 4]
mov dword [eax + 8], ecx
mov eax, dword [ebx]
mov edx, dword [eax + 0x18]
mov esi, dword [eax + 4]
add edx, esi
mov dword [eax + 0xc], edx
mov eax, dword [ebx]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 8]
add ecx, edx
mov dword [eax + 0x10], ecx
mov eax, dword [edi + 0x28]
lea edx, [eax + eax*4]
shl edx, 3
push edx
call fcn.10025380
mov ecx, dword [esp + 0x34]
add esp, 0x1c
test eax, eax
mov dword [ecx], eax
je 0x1004a4ea
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x38]
mov esi, dword [ecx]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x1c], edx
test eax, eax
mov dword [esp + 0x60], eax
jle 0x1004a447
jmp 0x1004a17a
mov edx, dword [esp + 0x1c]
mov ecx, dword [edi + 0x2c]
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x30]
mov ebp, 1
shl ebp, cl
mov ecx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x68], eax
add ebp, ecx
mov ecx, dword [ebx]
cmp edx, dword [ecx + 4]
jbe 0x1004a1a5
mov ecx, edx
jmp 0x1004a1a8
mov ecx, dword [ecx + 4]
mov edx, dword [esp + 0x20]
mov dword [esi], ecx
mov ecx, dword [ebx]
cmp edx, dword [ecx + 8]
jbe 0x1004a1b9
mov ecx, edx
jmp 0x1004a1bc
mov ecx, dword [ecx + 8]
mov dword [esi + 4], ecx
mov ecx, dword [ebx]
mov edx, dword [ecx + 0xc]
cmp eax, edx
jb 0x1004a1ca
mov eax, edx
mov dword [esi + 8], eax
mov eax, dword [ebx]
cmp ebp, dword [eax + 0x10]
jae 0x1004a1d8
mov eax, ebp
jmp 0x1004a1db
mov eax, dword [eax + 0x10]
mov edx, dword [esi + 8]
mov dword [esi + 0xc], eax
cmp edx, dword [esi]
jbe 0x1004a3ec
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
cmp eax, ecx
jbe 0x1004a3ec
mov eax, dword [esi + 4]
xor ecx, ecx
mov cx, word [edi + 0x36]
mov edx, 1
shr eax, cl
shl edx, cl
mov ebp, dword [esi + 8]
shl eax, cl
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0xc]
lea eax, [edx + eax - 1]
mov edx, 1
shr eax, cl
shl eax, cl
xor ecx, ecx
mov cx, word [edi + 0x34]
shl edx, cl
lea edx, [edx + ebp - 1]
mov ebp, dword [esi]
shr edx, cl
shr ebp, cl
shl edx, cl
shl ebp, cl
sub edx, ebp
shr edx, cl
sub eax, dword [esp + 0x34]
mov dword [esi + 0x10], edx
mov cl, byte [edi + 0x36]
shr eax, cl
mov ecx, edx
imul edx, eax
push eax
push ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edx
call fcn.10061490
add esp, 8
mov dword [esi + 0x20], eax
test eax, eax
je 0x1004a4ea
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
push ecx
push edx
call fcn.10061490
add esp, 8
mov dword [esi + 0x24], eax
test eax, eax
je 0x1004a4ea
mov eax, dword [esi + 0x18]
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
shl edx, 2
push edx
call fcn.10025380
add esp, 4
mov dword [esi + 0x1c], eax
test eax, eax
je 0x1004a4ea
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov ebp, dword [esi + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x14], ecx
test eax, eax
mov dword [esp + 0x3c], eax
jle 0x1004a3f7
mov cl, byte [edi + 0x34]
mov eax, 1
shl eax, cl
mov cl, byte [edi + 0x36]
mov ebx, dword [esp + 0x2c]
mov edx, 1
mov dword [esp + 0x48], ebx
shl edx, cl
mov ecx, dword [esp + 0x14]
add eax, ebx
add edx, ecx
mov ecx, dword [esi]
cmp ebx, ecx
ja 0x1004a2f3
mov dword [esp + 0x48], ecx
mov ecx, dword [esi + 4]
mov ebx, dword [esp + 0x14]
cmp ebx, ecx
mov dword [esp + 0x40], ebx
ja 0x1004a306
mov dword [esp + 0x40], ecx
mov ecx, dword [esi + 8]
cmp eax, ecx
jb 0x1004a30f
mov eax, ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x34], eax
cmp edx, ecx
jae 0x1004a31c
mov ecx, edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x64], ecx
cmp eax, edx
jbe 0x1004a3a2
cmp ecx, dword [esp + 0x40]
jbe 0x1004a3a2
xor ebx, ebx
mov dword [ebp + 0x18], 0xffffffff
push ebx
push ebx
push ebx
push ebx
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x20], ebx
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], 3
mov dword [ebp + 0x24], ebx
call fcn.10021670
add esp, 0x10
cmp eax, ebx
mov dword [ebp + 0x28], eax
je 0x1004a4ea
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [ebx]
push ecx
mov ecx, dword [ebp + 0x28]
push edx
push eax
push ecx
call fcn.100217d0
mov eax, dword [esp + 0x54]
add esp, 0x18
add ebp, 0x2c
dec eax
mov dword [esp + 0x3c], eax
jmp 0x1004a3a6
mov ebx, dword [esp + 0x10]
mov cl, byte [edi + 0x34]
mov eax, dword [esp + 0x2c]
mov edx, 1
shl edx, cl
mov ecx, dword [esp + 0x68]
add eax, edx
cmp eax, ecx
mov dword [esp + 0x2c], eax
jb 0x1004a3de
mov cl, byte [edi + 0x36]
mov eax, dword [esp + 0x1c]
mov edx, 1
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
shl edx, cl
add eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x3c]
test eax, eax
jg 0x1004a2c5
jmp 0x1004a3f7
xor eax, eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov ecx, dword [edi + 0x2c]
mov eax, dword [esp + 0x1c]
mov edx, 1
shl edx, cl
mov ecx, dword [esp + 0x50]
add eax, edx
cmp eax, ecx
mov dword [esp + 0x1c], eax
jb 0x1004a42f
mov ecx, dword [edi + 0x30]
mov eax, dword [esp + 0x38]
mov edx, 1
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
shl edx, cl
add eax, edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x60]
add esi, 0x28
dec eax
test eax, eax
mov dword [esp + 0x60], eax
jg 0x1004a176
mov ebp, dword [esp + 0x5c]
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x18]
mov ecx, dword [edi]
inc eax
add esi, 0x20
add ebx, 0x20
cmp eax, ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], ebx
jl 0x1004a00d
jmp 0x1004a47c
xor eax, eax
mov dword [edi + 4], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 0x14]
inc eax
add edi, 0x38
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x10049e28
mov ebx, dword [esp + 0xa74]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x30]
add ecx, 0x11c
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0xa70]
inc eax
add ebp, 0x20
mov edx, dword [ecx + 0x38]
add esi, 0x20
cmp eax, edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x30], esi
jl 0x10049d3e
xor esi, esi
mov eax, ecx
push ebx
push eax
call fcn.10063530
add esp, 8
cmp eax, esi
mov dword [ebx + 0x34], eax
jne 0x1004a4f8
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0xa5c
ret
mov edx, dword [ebx + 0x20]
mov eax, dword [edx + 4]
push eax
call fcn.1004c020
add esp, 4
test eax, eax
jle 0x1004a53c
mov ecx, dword [ebx + 0x20]
push esi
mov edx, dword [ecx + 4]
push edx
call fcn.10061400
push eax
call fcn.10061320
push eax
mov eax, dword [ebx + 0x34]
push eax
call fcn.10061230
mov ecx, dword [ebx + 0x20]
inc esi
mov edx, dword [ecx + 4]
push edx
call fcn.1004c020
add esp, 0x18
cmp esi, eax
jl 0x1004a50b
mov eax, dword [ebx + 0x34]
push eax
call fcn.10061410
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa5c
ret