Function at 0x437380
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov esi, esp
mov dword [esi + 0x98], ebp
mov edi, dword [ebp + 0x14]
lea ecx, [esi + 0xa0]
mov dword [ecx - 4], esp
xor eax, eax
dec eax
mov dword [ecx + 8], eax
mov dword [ecx + 4], 0x4436f0
mov edx, dword fs:[0]
mov dword [ecx], edx
mov edx, dword [ebp + 0x10]
mov dword fs:[0], ecx
mov ecx, edi
sub ecx, edx
sar ecx, 2
imul ecx, ecx, 0xaaaaaaab
mov dword [esi + 0x90], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x80], xmm0
movdqa xmmword [esi + 0x70], xmm0
movdqa xmmword [esi + 0x60], xmm0
movdqa xmmword [esi + 0x50], xmm0
movdqa xmmword [esi + 0x40], xmm0
movdqa xmmword [esi + 0x30], xmm0
mov dword [esi + 0x18], 0
mov eax, ecx
mov dword [esi + 0x14], ecx
cmp ecx, 0x65
jb 0x43743a
push dword [esi + 0x14]
call fcn.004ab0b0
mov edx, dword [ebp + 0x10]
add esp, 4
mov dword [esi + 0x10], eax
mov dword [esi + 8], eax
test eax, eax
jne 0x437447
mov dword [esi + 0xc], 0
mov dword [esi + 0xa8], 1
call fcn.00506900
lea eax, [esi + 0x30]
mov dword [esi + 0x10], eax
mov dword [esi + 8], 0
cmp edx, edi
je 0x43747c
mov dword [esi + 0x18], 0
mov eax, edx
mov ecx, dword [esi + 0x10]
movzx edx, byte [eax + 0xb]
test dl, dl
jns 0x437462
mov edx, dword [eax + 4]
test edx, edx
je 0x43746b
mov byte [ecx], 1
jmp 0x437474
mov byte [ecx], 2
dec dword [esi + 0x14]
inc dword [esi + 0x18]
add eax, 0xc
inc ecx
cmp eax, edi
jne 0x437457
mov dword [esi + 0xa8], 1
xor ecx, ecx
mov dword [esi + 0x24], ecx
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov dword [esi + 0xa8], 1
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.004f6e60
test al, al
jne 0x4376b6
cmp dword [esi + 0x14], 0
je 0x4376b6
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
je 0x4374cf
movzx eax, word [eax]
mov word [esi + 6], ax
jmp 0x4374fe
mov eax, dword [edi]
mov ebx, dword [eax + 0x20]
mov dword [esi + 0xa8], 0xffffffff
mov ecx, ebx
call dword [section..00cfg]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov dword [esi + 0xa8], 1
mov ecx, edi
call ebx
mov word [esi + 6], ax
cmp byte [ebp + 0x20], 0
jne 0x43753b
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebx]
mov edi, dword [eax + 0x1c]
mov dword [esi + 0xa8], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov dword [esi + 0xa8], 1
movzx eax, word [esi + 6]
mov ecx, ebx
push eax
call edi
mov word [esi + 6], ax
mov edx, dword [ebp + 0x14]
mov edi, dword [esi + 0x10]
mov ebx, dword [esi + 0x24]
lea ecx, [ebx + 1]
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x28], 0
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x20], eax
cmp eax, edx
je 0x437613
cmp byte [edi], 1
jne 0x437607
mov ecx, dword [esi + 0x20]
movzx eax, byte [ecx + 0xb]
test al, al
js 0x43757c
cmp ebx, eax
jbe 0x43758a
jmp 0x437719
cmp dword [ecx + 4], ebx
jb 0x437719
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
mov dword [esi + 0x2c], edi
movzx edi, word [ecx + ebx*2]
cmp byte [ebp + 0x20], 0
jne 0x4375d2
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov ebx, dword [eax + 0x1c]
mov dword [esi + 0xa8], 0xffffffff
mov ecx, ebx
call dword [section..00cfg]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov dword [esi + 0xa8], 1
movzx eax, di
mov ecx, dword [ebp + 0x18]
push eax
call ebx
mov edi, eax
mov edx, dword [ebp + 0x14]
mov ebx, dword [esi + 0x24]
cmp word [esi + 6], di
jne 0x4375fe
mov ecx, dword [esi + 0x20]
movzx eax, byte [ecx + 0xb]
test al, al
mov edi, dword [esi + 0x2c]
jns 0x4375e9
mov eax, dword [ecx + 4]
mov cl, 1
mov dword [esi + 0x28], ecx
cmp eax, dword [esi + 0x1c]
jne 0x437607
mov byte [edi], 2
dec dword [esi + 0x14]
inc dword [esi + 0x18]
jmp 0x437607
mov edi, dword [esi + 0x2c]
mov byte [edi], 0
dec dword [esi + 0x14]
mov eax, dword [esi + 0x20]
add eax, 0xc
inc edi
jmp 0x437554
mov ecx, dword [esi + 0x1c]
test byte [esi + 0x28], 1
je 0x437488
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
je 0x437635
add eax, 2
mov dword [edi + 0xc], eax
jmp 0x437660
mov eax, dword [edi]
mov ebx, dword [eax + 0x24]
mov dword [esi + 0xa8], 0xffffffff
mov ecx, ebx
call dword [section..00cfg]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov dword [esi + 0xa8], 1
mov ecx, edi
call ebx
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
add eax, ecx
mov edx, dword [esi + 0x1c]
mov ecx, edx
cmp eax, 2
mov edi, dword [ebp + 0x14]
jb 0x437488
mov ecx, edx
cmp dword [ebp + 0x10], edi
je 0x437488
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x10]
cmp byte [ecx], 2
jne 0x4376a7
movzx ebx, byte [eax + 0xb]
test bl, bl
jns 0x43769a
mov ebx, dword [eax + 4]
mov edx, dword [esi + 0x1c]
cmp ebx, edx
je 0x4376a7
mov byte [ecx], 0
dec dword [esi + 0x18]
add eax, 0xc
inc ecx
cmp eax, edi
jne 0x43768a
mov ecx, edx
jmp 0x437488
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.004f6e60
test al, al
mov ebx, dword [ebp + 0x1c]
je 0x4376d2
or byte [ebx], 2
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
cmp eax, edi
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x10]
je 0x4376ef
cmp byte [edx], 2
je 0x4376f4
add eax, 0xc
inc edx
cmp eax, edi
jne 0x4376e2
or byte [ebx], 4
jmp 0x4376f6
mov edi, eax
test ecx, ecx
je 0x437703
push ecx
call fcn.004ab100
add esp, 4
mov eax, dword [esi + 0xa0]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi + 0xa8], 0
push str.string_index_out_of_bounds
push str.__pos___size__
push 0xd4e
push str....._buildtools_third_partylibc_trunkinclude_string
push str._s:_d:_assertion__s_failed:__s
call fcn.004f96d0
add esp, 0x14
nop word cs:[eax + eax]
push ebp
sub esp, 0x14
lea esi, [ebp - 0xac]
mov ebp, dword [esi + 0x98]
call fcn.004c7520
nop word cs:[eax + eax]
push ebp
sub esp, 0x14
lea esi, [ebp - 0xac]
mov ebp, dword [esi + 0x98]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x437790
push eax
call fcn.004ab100
add esp, 4
add esp, 0x14
pop ebp
ret