Function at 0x41f570
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
xor edx, edx
mov edi, dword [esi + 0x58]
mov bx, word [esi + 0x20]
cmp edi, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], edx
je 0x41f5d4
mov ecx, dword [0x4475a4]
mov eax, 0x800
cmp ecx, edx
je 0x41f5ab
or word [esi + 4], ax
test word [esi + 4], ax
je 0x41f5c7
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x20], 1
mov ebx, ecx
jmp 0x41f5e1
push esi
call fcn.0041fd30
add esp, 4
xor edx, edx
jmp 0x41f5e1
mov eax, 0xf7ff
and word [esi + 4], ax
and word [esi + 0x2e], ax
mov ecx, dword [esi + 0x30]
mov eax, dword [esi + 0x34]
cmp dword [esi + 0x14], edx
mov ebp, ecx
mov edi, eax
ja 0x41f622
jb 0x41f5f8
cmp dword [esi + 0x10], 0xffffffff
ja 0x41f622
cmp dword [esi + 0x1c], edx
ja 0x41f622
jb 0x41f605
cmp dword [esi + 0x18], 0xffffffff
ja 0x41f622
cmp eax, edx
ja 0x41f622
jb 0x41f610
cmp ecx, 0xffffffff
ja 0x41f622
cmp dword [esi + 0x28], 0xffff
ja 0x41f622
cmp dword [0x436cc8], 1
jne 0x41f633
push esi
call fcn.0041f9f0
add esp, 4
test eax, eax
jne 0x41f9e8
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
push 0x2014b50
call fcn.0041ed60
lea eax, [esp + 0x28]
lea ecx, [esp + 0x24]
push eax
mov ax, word [esi]
lea edx, [esp + 0x24]
push ecx
push edx
push eax
call fcn.0041ecb0
lea ecx, [esp + 0x38]
lea edx, [esp + 0x34]
push ecx
mov cx, word [esi + 2]
lea eax, [esp + 0x34]
push edx
push eax
push ecx
call fcn.0041ecb0
lea edx, [esp + 0x48]
lea eax, [esp + 0x44]
push edx
mov dx, word [esi + 4]
lea ecx, [esp + 0x44]
push eax
push ecx
push edx
call fcn.0041ecb0
add esp, 0x40
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push eax
mov ax, word [esi + 6]
push ecx
push edx
push eax
call fcn.0041ecb0
lea ecx, [esp + 0x28]
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [esi + 8]
lea eax, [esp + 0x24]
push edx
push eax
push ecx
call fcn.0041ed60
lea edx, [esp + 0x38]
lea eax, [esp + 0x34]
push edx
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x34]
push eax
push ecx
push edx
call fcn.0041ed60
mov eax, dword [esi + 0x14]
add esp, 0x30
test eax, eax
ja 0x41f6f2
cmp dword [esi + 0x10], 0xffffffff
jbe 0x41f705
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
push 0xffffffffffffffff
jmp 0x41f718
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esi + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
call fcn.0041ed60
mov eax, dword [esi + 0x1c]
add esp, 0x10
test eax, eax
ja 0x41f74d
jb 0x41f72f
cmp dword [esi + 0x18], 0xffffffff
ja 0x41f74d
cmp dword [0x436cc8], 1
je 0x41f74d
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x18]
lea eax, [esp + 0x14]
push edx
push eax
push ecx
jmp 0x41f75e
lea edx, [esp + 0x18]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
push 0xffffffffffffffff
call fcn.0041ed60
add esp, 0x10
lea edx, [esp + 0x18]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
push eax
push ecx
push ebx
call fcn.0041ecb0
lea edx, [esp + 0x28]
lea eax, [esp + 0x24]
push edx
mov dx, word [esi + 0x24]
lea ecx, [esp + 0x24]
push eax
push ecx
push edx
call fcn.0041ecb0
lea eax, [esp + 0x38]
lea ecx, [esp + 0x34]
push eax
mov ax, word [esi + 0x26]
lea edx, [esp + 0x34]
push ecx
push edx
push eax
call fcn.0041ecb0
mov eax, dword [esi + 0x28]
add esp, 0x30
lea ecx, [esp + 0x18]
cmp eax, 0xffff
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
jbe 0x41f7d0
push 0xffff
jmp 0x41f7d5
mov cx, word [esi + 0x28]
push ecx
call fcn.0041ecb0
add esp, 0x10
lea edx, [esp + 0x18]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
mov dx, word [esi + 0x2c]
push eax
push ecx
push edx
call fcn.0041ecb0
lea eax, [esp + 0x28]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esi + 0x38]
lea edx, [esp + 0x24]
push ecx
push edx
push eax
call fcn.0041ed60
add esp, 0x20
test edi, edi
ja 0x41f81a
cmp ebp, 0xffffffff
jbe 0x41f82d
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
push 0xffffffffffffffff
jmp 0x41f83d
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
push ebp
call fcn.0041ed60
mov eax, dword [esp + 0x30]
mov ebp, dword [sym.imp.USER32.dll_CharToOemA]
add esp, 0x10
test eax, eax
je 0x41f86f
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x58]
lea eax, [esp + 0x14]
push edx
and ebx, 0xffff
push eax
push ebx
push ecx
jmp 0x41f8e7
test byte [esi + 1], 0xff
jne 0x41f8cd
mov edi, dword [esi + 0x4c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.004231a0
mov edi, eax
add esp, 4
test edi, edi
jne 0x41f89f
push str.putcentral_oem
push 4
call fcn.00412590
add esp, 8
mov edx, dword [esi + 0x4c]
push edi
push edx
call ebp
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
xor eax, eax
mov ax, word [esi + 0x20]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
push edi
call fcn.0041ee20
push edi
call fcn.00423252
add esp, 0x18
jmp 0x41f8ef
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
xor ecx, ecx
mov cx, word [esi + 0x20]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esi + 0x4c]
push eax
push ecx
push edx
call fcn.0041ee20
add esp, 0x14
mov ax, word [esi + 0x24]
test ax, ax
je 0x41f919
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
push edx
mov edx, dword [esi + 0x44]
and eax, 0xffff
push ecx
push eax
push edx
call fcn.0041ee20
add esp, 0x14
mov ax, word [esi + 0x26]
test ax, ax
je 0x41f9a1
test byte [esi + 1], 0xff
jne 0x41f980
mov edi, dword [esi + 0x48]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.004231a0
mov edi, eax
add esp, 4
test edi, edi
jne 0x41f952
push str.putcentral_oem_comment
push 4
call fcn.00412590
add esp, 8
mov eax, dword [esi + 0x48]
push edi
push eax
call ebp
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
xor ecx, ecx
mov cx, word [esi + 0x26]
lea eax, [esp + 0x14]
push edx
push eax
push ecx
push edi
call fcn.0041ee20
push edi
call fcn.00423252
add esp, 0x18
jmp 0x41f9a1
lea edx, [esp + 0x18]
lea ecx, [esp + 0x14]
push edx
lea edx, [esp + 0x14]
push ecx
and eax, 0xffff
push edx
push eax
mov eax, dword [esi + 0x48]
push eax
call fcn.0041ee20
add esp, 0x14
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 2
push ecx
push 1
push edx
call fcn.00409b30
mov ecx, dword [esp + 0x24]
add esp, 0x10
cmp eax, ecx
je 0x41f9d9
mov eax, dword [esp + 0x10]
push eax
call fcn.00423252
add esp, 4
mov eax, 0xa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00423252
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret