Function at 0x1004d1e9
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 0x54]
jmp 0x1004d336
sub esp, 0x2c
mov eax, dword [esp + 0x3c]
and dword [esp + 0x20], 0
push ebx
push ebp
mov ebp, dword [esp + 0x40]
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], ebx
test ebp, ebp
je 0x1004d230
mov esi, ebp
mov ecx, edi
call fcn.1005047f
push ebx
push eax
lea ecx, [edi + 0x98]
mov dword [esp + 0x18], eax
call fcn.100562c3
mov ebx, eax
dec esi
jne 0x1004d20f
mov dword [esp + 0x14], ebx
xor ecx, ecx
inc ecx
cmp ebp, ecx
ja 0x100c44ce
mov esi, dword [esp + 0x58]
and dword [esp + 0x20], 0
lea eax, [esp + 0x14]
mov dword [esp + 0x48], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x1004d1e0
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x50]
and eax, 8
and edx, ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], edx
cmp esi, 0xffffffff
je 0x1014aa89
cmp esi, dword [ecx + 4]
ja 0x1014aaa2
mov eax, dword [ecx]
add eax, esi
push edx
push eax
mov dword [esp + 0x2c], eax
call fcn.10053d0c
test eax, eax
jne 0x1014aaa9
cmp dword [esp + 0x38], 0
jne 0x1014aaba
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x10], eax
test eax, eax
je 0x1014aaea
cmp word [eax], 0x70
je 0x100c58d4
mov ax, word [eax + 6]
mov word [edi + 0x128], ax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x54]
mov ecx, edi
push esi
push dword [esp + 0x60]
push dword [esp + 0x50]
call fcn.1005482c
mov ecx, dword [esp + 0x54]
mov eax, 0xffff
mov word [edi + 0x128], ax
cmp esi, dword [ecx + 4]
ja 0x1014ab18
mov eax, dword [ecx]
add eax, esi
mov esi, dword [eax + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
dec dword [esp + 0x28]
inc dword [esp + 0x20]
mov dword [edx + 0x10], eax
lea eax, [edx + 0x14]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x48], eax
mov eax, dword [eax]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], eax
test eax, eax
jne 0x1004d271
mov eax, dword [esp + 0x50]
and eax, 1
mov dword [esp + 0x2c], eax
jne 0x100c85ee
mov eax, dword [esp + 0x54]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x50]
and eax, 8
mov dword [esp + 0x38], eax
jne 0x1014ab1f
cmp dword [esp + 0x30], 0
jne 0x100c5d27
mov esi, dword [esp + 0x5c]
cmp ebp, dword [esi]
jb 0x1005416e
mov ebp, dword [esp + 0x48]
test byte [esp + 0x50], 0x20
jne 0x100b1796
cmp dword [esp + 0x2c], 0
jne 0x100c82af
mov eax, dword [esp + 0x60]
pop edi
pop esi
pop ebp
mov dword [eax], ebx
pop ebx
add esp, 0x2c
ret 0x28
cmp ebp, dword [esp + 0x4c]
jb 0x1014ac88
test byte [esp + 0x50], 2
jne 0x1004d377
cmp ebp, dword [esi]
jae 0x1004d377
mov esi, dword [esp + 0x1c]
jmp 0x100562ef
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x54]
mov ecx, edi
push esi
push dword [esp + 0x60]
push dword [esp + 0x50]
call fcn.1005482c
push 0
push dword [esp + 0x14]
lea ecx, [edi + 0x98]
call fcn.100562c3
mov edx, dword [esp + 0x48]
mov dword [edx], eax
add eax, 0x14
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x54]
cmp esi, dword [eax + 4]
ja 0x1014ac99
mov eax, dword [eax]
add eax, esi
mov esi, dword [eax + 0x14]
mov eax, dword [esp + 0x5c]
inc ebp
cmp ebp, dword [eax]
jb 0x100562ef
mov ebx, dword [esp + 0x14]
jmp 0x1004d377
mov ecx, eax
mov eax, dword [ecx + 0x14]
jmp 0x100c5d75
test eax, eax
je 0x1004d2a5
jmp 0x1004d1e0
movzx eax, word [edi + 0x126]
sub eax, 2
lea ebx, [edi + 0x98]
push eax
mov ecx, ebx
call fcn.10044a41
mov esi, eax
xor eax, eax
push 8
inc eax
push esi
mov ecx, edi
mov dword [esp + 0x18], esi
mov word [esi], ax
call fcn.10045c65
mov ecx, dword [edi + 0x38]
mov eax, dword [ecx]
lea edx, [esp + 0x34]
push edx
push ecx
call dword [eax + 0x1c]
test eax, eax
js 0x1014aca0
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x38]
push dword [esp + 0x34]
mov edx, dword [eax]
push eax
call dword [edx + 0x30]
push 0
push esi
mov ecx, ebx
call fcn.100562c3
mov dword [ebp], eax
mov ebx, dword [esp + 0x14]
lea ebp, [eax + 0x14]
jmp 0x1004d386
mov eax, dword [esp + 0x40]
test byte [eax + 0x1d], cl
je 0x1004d23b
or dword [edi + 0xec], 8
jmp 0x1004d23b
mov dword [esp + 0x30], 1
jmp 0x1004d1e0
test eax, eax
jne 0x1014ac07
mov esi, dword [esp + 0x50]
and esi, 2
jne 0x1014ac2a
mov eax, dword [esp + 0x48]
xor ecx, ecx
cmp dword [eax], ecx
je 0x1014ac21
mov dword [eax], ecx
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1c]
mov ecx, edi
push dword [esp + 0x4c]
push dword [esp + 0x5c]
push dword [esp + 0x64]
push dword [esp + 0x54]
call fcn.100c5c78
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx + 0x14]
mov ecx, ebx
test eax, eax
jne 0x1009c2d5
lea eax, [ecx + 0x14]
mov dword [esp + 0x48], eax
test esi, esi
jne 0x100c5dcc
mov esi, dword [esp + 0x58]
mov dword [esp + 0x1c], esi
mov esi, ebx
mov ebx, dword [esp + 0x1c]
xor ebp, ebp
inc ebp
cmp dword [esi + 0x10], 0
je 0x1014ac45
mov eax, dword [esp + 0x54]
cmp ebx, dword [eax + 4]
ja 0x1014ac81
mov eax, dword [eax]
add eax, ebx
mov ebx, dword [eax + 0x14]
lea ecx, [esi + 0x14]
mov esi, dword [ecx]
mov dword [esp + 0x48], ecx
test esi, esi
jne 0x100c5d98
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x5c]
jmp 0x1005416e
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x54]
mov ecx, edi
push dword [esp + 0x30]
push dword [esp + 0x60]
push dword [esp + 0x50]
call fcn.100c81b5
push 0
push dword [esp + 0x14]
lea ecx, [edi + 0x98]
call fcn.100562c3
mov dword [ebp], eax
mov ebx, dword [esp + 0x14]
jmp 0x1004d391
push esi
push ecx
call fcn.100c85fa
jmp 0x1004d34b
push 0x1c2
mov ecx, edi
call fcn.101f807f
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x2c]
jmp 0x1004d27a
xor eax, eax
jmp 0x1004d287
push 0x1c2
mov ecx, edi
call fcn.101f807f
jmp 0x1004d29a
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + 0x14]
cmp ecx, 0xffffffff
je 0x1004d1e0
mov eax, dword [esp + 0x54]
cmp ecx, dword [eax + 4]
jbe 0x1014aad7
xor eax, eax
jmp 0x1014aadb
mov eax, dword [eax]
add eax, ecx
push dword [esp + 0x2c]
push eax
call fcn.10053d0c
jmp 0x1009c2df
cmp dword [esp + 0x28], eax
jle 0x1004d2cd
mov eax, dword [esp + 0x24]
test byte [eax + 0x19], 2
jne 0x1004d2cd
push 0xffff
push 0x1c1
mov ecx, edi
call fcn.101f80ed
jmp 0x1004d2cd
xor eax, eax
jmp 0x1004d303
mov edx, dword [esp + 0x54]
cmp esi, dword [edx + 4]
jbe 0x1014ab2c
xor eax, eax
jmp 0x1014ab30
mov eax, dword [edx]
add eax, esi
mov ecx, dword [eax + 0x14]
cmp ecx, 0xffffffff
je 0x1014ab57
cmp ecx, dword [edx + 4]
jbe 0x1014ab41
xor eax, eax
jmp 0x1014ab45
mov eax, dword [edx]
add eax, ecx
push dword [esp + 0x2c]
push eax
call fcn.10053d0c
test eax, eax
je 0x1014abfe
test byte [esp + 0x50], 2
jne 0x1014abdb
movzx eax, word [edi + 0x126]
sub eax, 2
lea esi, [edi + 0x98]
push eax
mov ecx, esi
call fcn.10044a41
push 0x37
pop ecx
mov word [eax], cx
push eax
mov ecx, esi
mov dword [esp + 0x50], eax
call fcn.1004497f
mov ecx, dword [esp + 0x4c]
test ebx, ebx
jne 0x1014ab98
mov ebx, ecx
mov dword [esp + 0x14], ebx
jmp 0x1014aba2
mov edx, dword [esp + 0x48]
mov dword [edx], ecx
mov ebx, dword [esp + 0x14]
sub ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
lea eax, [ecx + 0x14]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x5c]
mov dword [eax], ebp
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x68]
push ecx
push ebp
push esi
push dword [esp + 0x68]
mov ecx, edi
call fcn.1022ebeb
jmp 0x1004d377
push dword [esp + 0x18]
mov ecx, edi
call fcn.1015692e
mov eax, dword [ebx + 0x14]
mov ecx, ebx
jmp 0x1014abf2
mov ecx, eax
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x1014abed
lea ebp, [ecx + 0x14]
jmp 0x1004d37b
mov eax, dword [esp + 0x38]
jmp 0x1004d360
mov eax, dword [esp + 0x10]
movzx eax, word [eax + 6]
push eax
push 0x9cc2
mov ecx, edi
call fcn.101f80ed
jmp 0x100c5d2f
mov dword [esp + 0x14], ecx
jmp 0x100c5d4c
mov eax, ebp
sub eax, dword [esp + 0x20]
mov ecx, edi
push eax
push dword [esp + 0x1c]
push dword [esp + 0x4c]
call fcn.1022ea02
jmp 0x100c5d70
cmp ebp, dword [esp + 0x4c]
ja 0x1014ac57
push 0x1c1
mov ecx, edi
call fcn.101f807f
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x54]
mov ecx, edi
push ebx
push dword [esp + 0x60]
push dword [esp + 0x50]
call fcn.1005482c
mov eax, dword [esp + 0x10]
mov dword [esi + 0x10], eax
jmp 0x100c5da3
xor eax, eax
jmp 0x100c5db4
push 0x1c1
mov ecx, edi
call fcn.101f807f
jmp 0x10054178
xor eax, eax
jmp 0x1005633c
push eax
call fcn.100e1d28
int3