Function at 0x412b00
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, ecx
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x412b20
mov byte [ecx + 4], 1
mov eax, dword [ecx + 8]
cmp dword [ecx + 0xc], eax
je 0x412b20
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x54]
mov edx, dword [esi + 0x68]
mov dword [esi + 0x4c], eax
mov dword [esi], eax
lea ecx, [esi + 4]
mov byte [esp + 7], 0
mov eax, dword [esi + 0x10]
mov ebx, edx
sub ebx, eax
mov dword [esp], esi
jbe 0x412b6f
mov ebp, eax
shr ebp, 5
lea edx, [ebp + 0x38000000]
test eax, eax
cmovns edx, ebp
shl edx, 2
add edx, dword [ecx]
and eax, 0x1f
lea ebp, [esp + 7]
lea edi, [esp + 0xc]
push ebp
mov esi, dword [esp + 4]
push ebx
push eax
push edx
push edi
call fcn.00411be0
jmp 0x412bb1
jae 0x412bb1
mov edi, dword [ecx]
mov ebx, eax
shr ebx, 5
lea ebp, [ebx + 0x38000000]
test eax, eax
cmovns ebp, ebx
lea esi, [edi + ebp*4]
and eax, 0x1f
mov ebp, edx
shr ebp, 5
lea ebx, [ebp + 0x38000000]
test edx, edx
cmovns ebx, ebp
lea ebx, [edi + ebx*4]
and edx, 0x1f
lea ebp, [esp + 0xc]
push eax
push esi
push edx
push ebx
push ebp
mov esi, dword [esp + 0x14]
call fcn.00411cd0
mov bl, byte [esp + 0x2c]
lea ecx, [esi + 0x14]
mov ebp, dword [esi + 0x68]
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov edi, eax
sub eax, edx
sar eax, 3
cmp ebp, eax
jae 0x412bd4
lea eax, [edx + ebp*8]
mov dword [esi + 0x18], eax
jmp 0x412c1a
jbe 0x412c1a
mov ebx, dword [esi + 0x1c]
sub ebx, edx
sar ebx, 3
cmp ebx, ebp
jae 0x412bf6
lea eax, [esp + 0xc]
push eax
push ebp
call fcn.00413080
mov esi, dword [esp]
mov bl, byte [esp + 0x2c]
jmp 0x412c1a
sub ebp, eax
je 0x412c10
lea eax, [ebp*8]
push eax
push 0
push edi
call fcn.00434130
add esp, 0xc
lea edi, [edi + ebp*8]
mov esi, dword [esp]
mov bl, byte [esp + 0x2c]
mov dword [esi + 0x18], edi
mov edi, dword [esp + 0x28]
test edi, edi
setne byte [esi + 0x65]
mov byte [esi + 0x74], bl
mov dword [esi + 0x78], 0x989680
mov dword [esi + 0x7c], 0x3e8
mov byte [esi + 0x64], 0
mov ecx, esi
push dword [esi + 0x58]
call fcn.004131f0
test edi, edi
je 0x412e16
test al, al
je 0x412e16
mov byte [esp + 6], al
mov esi, dword [esi + 0x68]
mov ebx, dword [edi + 8]
mov ebp, dword [edi + 0xc]
mov eax, ebp
sub eax, ebx
mov ecx, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
sar edx, 1
add edx, eax
lea ecx, [edi + 8]
cmp esi, edx
jae 0x412c89
lea eax, [esi + esi*2]
lea eax, [ebx + eax*4]
mov dword [edi + 0xc], eax
jmp 0x412d53
jbe 0x412d53
mov eax, dword [edi + 0x10]
sub eax, ebx
sar eax, 2
imul eax, eax, 0xaaaaaaab
cmp eax, esi
jae 0x412cb1
lea eax, [esp + 0xc]
push eax
push esi
call fcn.00413aa0
jmp 0x412d53
mov eax, esi
sub eax, edx
je 0x412d50
not edx
add esi, edx
mov ecx, eax
and ecx, 3
je 0x412cee
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [ebp], 0
mov dword [ebp + 4], 0
mov byte [ebp + 8], 0
add ebp, 0xc
add edx, 1
cmp ecx, edx
jne 0x412cd0
sub eax, edx
cmp esi, 3
jb 0x412d50
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [ebp], 0
mov dword [ebp + 4], 0
mov byte [ebp + 8], 0
mov dword [ebp + 0xc], 0
mov dword [ebp + 0x10], 0
mov byte [ebp + 0x14], 0
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0
mov byte [ebp + 0x20], 0
mov dword [ebp + 0x24], 0
mov dword [ebp + 0x28], 0
mov byte [ebp + 0x2c], 0
add ebp, 0x30
add eax, 0xfffffffc
jne 0x412d00
mov dword [edi + 0xc], ebp
mov ebx, dword [esp]
cmp dword [ebx + 0x68], 0
mov esi, edi
je 0x412ddb
lea eax, [ebx + 0x50]
mov dword [esp + 8], eax
xor ecx, ecx
mov edx, 4
xor edi, edi
jmp 0x412dac
mov byte [ebp + ecx + 8], 0
mov esi, dword [esp + 8]
mov ebp, dword [esi]
mov dword [esp], ebp
mov ebx, dword [esp + 0x28]
mov ebp, dword [ebx + 8]
mov ebx, dword [esp]
mov dword [ebp + ecx], ebx
mov ebp, esi
mov esi, dword [esp + 0x28]
mov ebx, dword [ebp]
mov ebp, dword [esi + 8]
mov dword [ebp + ecx + 4], ebx
add edi, 1
add ecx, 0xc
add edx, 8
cmp edi, dword [eax + 0x68]
mov ebx, eax
jae 0x412ddb
mov eax, ebx
mov ebp, dword [ebx + 0x24]
mov ebx, edi
shr ebx, 5
mov ebx, dword [ebp + ebx*4]
bt ebx, edi
mov ebp, dword [esi + 8]
jae 0x412d70
mov byte [ebp + ecx + 8], 1
mov ebx, dword [eax + 0x34]
mov ebx, dword [ebx + edi*8]
mov ebp, dword [esi + 8]
mov dword [ebp + ecx], ebx
mov ebp, dword [eax + 0x34]
add ebp, edx
jmp 0x412d92
mov eax, dword [ebx + 0x4c]
mov dword [esi], eax
mov eax, dword [ebx + 0x4c]
mov dword [esi + 0x14], eax
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov dword [esi + 0x18], edx
cmp eax, edx
setne byte [esi + 0x1c]
mov eax, dword [ecx + 4]
mov dword [esi + 0x20], eax
mov ecx, dword [ebx + 0x50]
mov dword [esi + 0x24], ecx
cmp eax, ecx
setne byte [esi + 0x28]
mov eax, dword [ebx + 0x50]
mov dword [esi + 0x2c], eax
mov eax, dword [ebx + 0x50]
mov dword [esi + 0x30], eax
mov al, byte [esp + 6]
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 8