Function at 0x100417f0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1ec]
mov eax, dword [eax]
test byte [eax + 0x3c], 1
push edi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x18], eax
jne 0x1004184d
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esi + 0x20]
lea ebx, [ebx + ebx*4]
shl ebx, 4
cmp dword [ebp + 0x10], 0
mov edx, dword [ebx + ecx + 0x38]
lea eax, [ebx + ecx + 0x1c]
mov dword [esp + 0x20], edx
mov edx, dword [eax]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], edx
je 0x10041856
cmp dword [ebp + 0x14], 0
je 0x10041861
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x14], 0
je 0x10041861
cmp dword [ecx], 1
jg 0x1004184d
mov eax, dword [edx + 0x3c]
mov edi, dword [edx + 0x20]
test eax, eax
je 0x10041871
cmp dword [esi + 0x3c], 0
jne 0x1004184d
cmp dword [edx + 0x40], 0
jne 0x1004184d
movzx edx, word [esi + 6]
mov dword [esp + 0x2c], edx
test dl, 0x40
je 0x10041888
test eax, eax
jne 0x1004184d
cmp dword [edi], 0
je 0x1004184d
mov edx, dword [esp + 0x14]
movzx edx, word [edx + 6]
mov dword [esp + 0x34], edx
test dl, 1
jne 0x1004184d
test eax, eax
je 0x100418ad
cmp dword [ecx], 1
jg 0x1004184d
cmp dword [ebp + 0x10], 0
jne 0x1004184d
mov edx, dword [esp + 0x2c]
and edx, 1
mov dword [esp + 0x28], edx
je 0x100418c0
cmp dword [ebp + 0x14], 0
jne 0x1004184d
cmp dword [esi + 0x30], 0
mov edi, dword [esp + 0x14]
je 0x100418d4
cmp dword [edi + 0x30], 0
jne 0x1004184d
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x100418e5
cmp dword [edi + 0x30], 0
jne 0x1004184d
test eax, eax
je 0x10041903
cmp dword [esi + 0x24], 0
jne 0x1004184d
test eax, eax
je 0x10041903
cmp word [esp + 0x28], 0
jne 0x1004184d
test dword [esp + 0x34], 0x1800
jne 0x1004184d
test dword [esp + 0x2c], 0x800
je 0x10041925
cmp dword [edi + 0x34], 0
jne 0x1004184d
test byte [ebx + ecx + 0x2c], 0x20
lea eax, [ebx + ecx + 0x2c]
mov dword [esp + 0x3c], eax
jne 0x1004184d
cmp dword [edi + 0x34], 0
je 0x100419cb
cmp dword [edi + 0x30], 0
jne 0x1004184d
test edx, edx
jne 0x1004184d
cmp word [esp + 0x28], dx
jne 0x1004184d
cmp dword [ecx], 1
jne 0x1004184d
mov eax, edi
test byte [eax + 6], 5
jne 0x1004184d
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x10041985
cmp byte [eax + 4], 0x74
jne 0x1004184d
mov edx, dword [eax + 0x20]
cmp dword [edx], 1
jl 0x1004184d
mov edx, dword [edi]
mov eax, dword [eax]
mov edx, dword [edx]
cmp edx, dword [eax]
jne 0x1004184d
mov eax, ecx
test eax, eax
jne 0x1004196a
mov eax, dword [esi + 0x30]
test eax, eax
je 0x100419cb
cmp dword [eax], ecx
jle 0x100419cb
mov eax, dword [eax + 4]
add eax, 0x14
cmp word [eax], 0
je 0x1004184d
mov edx, dword [esi + 0x30]
inc ecx
add eax, 0x18
cmp ecx, dword [edx]
jl 0x100419b6
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + eax + 0x10]
push 0
lea edi, [ebx + eax + 0x10]
mov eax, dword [ebp + 8]
push 0
push 0
push 0x15
mov dword [esp + 0x44], edi
mov dword [eax + 0x1ec], ecx
call fcn.100396f0
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x1ec], edx
mov eax, dword [ecx + 0x34]
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
je 0x10041aaa
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x40]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esi + 0x30]
mov edi, dword [esi + 0x3c]
mov dword [esp + 0x2c], eax
xor eax, eax
push eax
push esi
push ecx
mov dword [esp + 0x44], edx
mov dword [esi + 0x30], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
call fcn.10031320
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov dword [esi + 0x40], edx
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], ebx
mov dword [esi + 0x20], ecx
mov byte [esi + 4], 0x74
test eax, eax
jne 0x10041a6d
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x34], edx
jmp 0x10041a81
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x34], ecx
test ecx, ecx
je 0x10041a7b
mov dword [ecx + 0x38], eax
mov dword [eax + 0x38], esi
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x41], 0
jne 0x10041e62
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x34]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10041a14
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x38], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [ebx + eax + 0xc]
call fcn.10025ff0
mov eax, dword [edi]
mov ecx, dword [esp + 0x18]
call fcn.10025ff0
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebx + ecx + 0x14]
mov ecx, dword [esp + 0x18]
call fcn.10025ff0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
xor ecx, ecx
mov dword [ebx + eax + 0xc], ecx
mov dword [ebx + eax + 0x14], ecx
lea ebx, [ebx + eax + 0x18]
mov eax, dword [ebx]
mov dword [edi], ecx
mov dword [edx], ecx
cmp eax, ecx
je 0x10041b46
movzx ecx, word [eax + 0x28]
cmp cx, 1
jne 0x10041b3b
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x198]
test ecx, ecx
jne 0x10041b1e
mov ecx, edx
mov edx, dword [ecx + 0x20c]
mov dword [eax + 0x48], edx
mov dword [ecx + 0x20c], eax
mov dword [ebx], 0
mov ebx, esi
mov dword [esp + 0x24], ebx
jmp 0x10041b54
dec ecx
mov word [eax + 0x28], cx
mov dword [ebx], 0
mov ebx, esi
mov dword [esp + 0x24], ebx
jmp 0x10041b54
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 0x20]
mov eax, dword [ebx + 0x20]
mov esi, dword [edi]
mov byte [esp + 0x13], 0
mov dword [esp + 0x1c], eax
test eax, eax
je 0x10041b79
mov ecx, dword [esp + 0x3c]
mov dl, byte [ecx]
mov byte [esp + 0x13], dl
jmp 0x10041b9a
mov edx, dword [esp + 0x18]
push 0
xor ecx, ecx
xor eax, eax
call fcn.10035230
add esp, 4
mov dword [ebx + 0x20], eax
mov dword [esp + 0x1c], eax
test eax, eax
je 0x10041e4e
cmp esi, 1
jle 0x10041bca
mov ecx, dword [ebp + 0xc]
inc ecx
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esi - 1]
push edx
push ecx
call fcn.10030dc0
mov edx, dword [esp + 0x24]
add esp, 0xc
mov dword [ebx + 0x20], eax
cmp byte [edx + 0x41], 0
mov dword [esp + 0x1c], eax
jne 0x10041e4e
test esi, esi
jle 0x10041c31
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
add edi, 8
lea edx, [eax + ecx + 8]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x34], esi
lea esp, [esp]
mov eax, dword [esp + 0x28]
mov edi, dword [eax + 0x38]
mov esi, dword [esp + 0x18]
call fcn.10027070
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov esi, eax
mov ecx, 0x14
rep movsd dword es:[edi], dword [esi]
mov esi, 0x50
push esi
push 0
push eax
call fcn.10004b00
add dword [esp + 0x34], esi
add dword [esp + 0x38], esi
add esp, 0xc
sub dword [esp + 0x34], 1
jne 0x10041bf0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
mov al, byte [esp + 0x13]
mov edi, dword [esp + 0x18]
mov byte [ecx + edx + 0x2c], al
mov ecx, dword [ebx]
xor eax, eax
cmp dword [ecx], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], eax
jle 0x10041ca8
mov dword [esp + 0x2c], eax
mov edx, dword [ecx + 4]
add eax, edx
cmp dword [eax + 4], 0
jne 0x10041c90
mov ebx, dword [eax + 8]
push edi
call fcn.1002d580
add esp, 4
mov esi, eax
call fcn.10016e80
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
mov dword [edx + ecx + 4], esi
mov ecx, eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
inc edx
add eax, 0x18
cmp edx, dword [ecx]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x2c], eax
jl 0x10041c59
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [esp + 0x20]
mov esi, dword [ebx]
push ecx
push edx
push edi
call fcn.1003c4e0
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x10041cf9
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [esp + 0x20]
mov esi, dword [ebx + 0x28]
push ecx
push edx
push edi
call fcn.1003c4e0
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x2c]
add esp, 0xc
push ecx
push edx
push eax
push edi
call fcn.10038840
add esp, 0x10
mov dword [ebx + 0x2c], eax
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x30]
xor ecx, ecx
cmp eax, ecx
je 0x10041d3a
cmp dword [eax], ecx
mov dword [esp + 0x1c], ecx
jle 0x10041d2e
mov edi, edi
mov edx, dword [eax + 4]
xor esi, esi
mov word [edx + ecx + 0x14], si
mov edx, dword [esp + 0x1c]
inc edx
add ecx, 0x18
cmp edx, dword [eax]
mov dword [esp + 0x1c], edx
jl 0x10041d10
mov esi, dword [esp + 0x14]
mov dword [ebx + 0x30], eax
mov dword [esi + 0x30], 0
jmp 0x10041d5c
mov eax, dword [ebx + 0x30]
cmp eax, ecx
je 0x10041d5c
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x20]
push edx
push ecx
push edi
mov esi, eax
call fcn.1003c4e0
mov esi, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [esi + 0x24]
test eax, eax
je 0x10041d77
push 0
push 0
push eax
push edi
call fcn.10031460
add esp, 0x10
mov dword [esp + 0x2c], eax
jmp 0x10041d7f
mov dword [esp + 0x2c], 0
cmp dword [ebp + 0x14], 0
je 0x10041de6
mov edx, dword [ebx + 0x24]
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x2c], edx
mov edx, dword [esp + 0x20]
mov dword [ebx + 0x24], eax
mov ecx, dword [esi]
mov eax, dword [ebx + 0x2c]
push ecx
push edx
push eax
push edi
call fcn.10038840
push 0
mov dword [ebx + 0x2c], eax
mov esi, dword [esi + 0x2c]
push 0
push esi
push edi
call fcn.10031460
mov edi, dword [esp + 0x38]
mov ebx, dword [ebx + 0x2c]
push eax
mov eax, edi
call fcn.10036930
mov esi, dword [esp + 0x48]
mov ebx, dword [esp + 0x38]
add esp, 0x24
mov dword [esi + 0x2c], eax
mov ecx, dword [ebx + 0x28]
push 0
push ecx
push edi
call fcn.1002e880
add esp, 0xc
mov dword [esi + 0x28], eax
jmp 0x10041e1b
mov edx, dword [esi]
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx + 0x24]
push edx
push eax
push ecx
push edi
call fcn.10038840
mov edx, dword [esp + 0x3c]
mov dword [ebx + 0x24], eax
mov ebx, eax
mov eax, dword [esp + 0x28]
push edx
call fcn.10036930
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x28]
add esp, 0x14
mov dword [ecx + 0x24], eax
mov esi, ecx
mov dx, word [ebx + 6]
and dx, 1
or word [esi + 6], dx
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x10041e38
mov dword [esi + 0x3c], eax
mov dword [ebx + 0x3c], 0
mov esi, dword [esi + 0x34]
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], eax
test esi, esi
jne 0x10041b50
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x18]
push 1
push ecx
push edx
call fcn.1002e080
add esp, 0xc
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret