Function at 0x40d580
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x38
mov eax, dword [0x46d040]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
mov ebx, dword [esp + 0x44]
push ebp
push edi
mov edi, dword [esp + 0x48]
mov ebp, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x14], edi
test edi, edi
je 0x40dc1f
test ebx, ebx
je 0x40dc1f
mov dword [ebx], edx
xorps xmm0, xmm0
mov eax, dword [ebp + 0x48]
push esi
movlpd qword [esp + 0x38], xmm0
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edx*4]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], 0
movzx ecx, byte [edi + 5]
movzx eax, byte [edi + 4]
shl cx, 8
or cx, ax
mov word [ebx + 0x10], cx
movzx ecx, byte [edi + 7]
movzx eax, byte [edi + 6]
shl cx, 8
or cx, ax
mov word [ebx + 0x12], cx
movzx ecx, byte [edi + 9]
movzx eax, byte [edi + 8]
shl cx, 8
or cx, ax
mov word [ebx + 0x14], cx
movzx ecx, byte [edi + 0xb]
movzx eax, byte [edi + 0xa]
shl cx, 8
or cx, ax
mov word [ebx + 0x16], cx
movzx ecx, byte [edi + 0xf]
movzx eax, byte [edi + 0xe]
movzx edx, byte [edi + 0xd]
shl ecx, 8
or ecx, eax
shl edx, 8
movzx eax, byte [edi + 0xc]
or edx, eax
mov eax, ecx
shr eax, 9
add eax, 0x50
mov dword [esp + 0x34], eax
mov eax, ecx
shr eax, 5
and ecx, 0x1f
and eax, 0xf
mov dword [esp + 0x2c], ecx
dec eax
mov dword [esp + 0x30], eax
mov eax, edx
shr eax, 0xb
mov dword [esp + 0x28], eax
mov eax, edx
shr eax, 5
and edx, 0x1f
and eax, 0x3f
add edx, edx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], edx
call fcn.0042ab7b
mov dword [ebx + 0x450], eax
mov dword [ebx + 0x454], edx
movzx ecx, byte [edi + 0x13]
movzx eax, byte [edi + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x10]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x18], ecx
movzx eax, byte [edi + 0x17]
cdq
mov ecx, eax
mov esi, edx
shld esi, ecx, 8
shl ecx, 8
movzx eax, byte [edi + 0x16]
cdq
or ecx, eax
or esi, edx
shld esi, ecx, 8
movzx eax, byte [edi + 0x15]
shl ecx, 8
cdq
or ecx, eax
or esi, edx
shld esi, ecx, 8
movzx eax, byte [edi + 0x14]
shl ecx, 8
cdq
or ecx, eax
or esi, edx
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x24], esi
movzx eax, byte [edi + 0x1b]
cdq
mov ecx, eax
mov esi, edx
movzx eax, byte [edi + 0x1a]
shld esi, ecx, 8
cdq
shl ecx, 8
or esi, edx
or ecx, eax
movzx eax, byte [edi + 0x19]
shld esi, ecx, 8
cdq
shl ecx, 8
or esi, edx
or ecx, eax
movzx eax, byte [edi + 0x18]
shld esi, ecx, 8
cdq
shl ecx, 8
or esi, edx
or ecx, eax
mov dword [ebx + 0x2c], esi
mov dword [ebx + 0x28], ecx
movzx ecx, byte [edi + 0x25]
movzx eax, byte [edi + 0x24]
shl cx, 8
or cx, ax
mov word [ebx + 0x30], cx
movzx ecx, byte [edi + 0x29]
movzx eax, byte [edi + 0x28]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x27]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x26]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x34], ecx
movzx eax, byte [edi + 0x2d]
cdq
mov ecx, eax
mov esi, edx
movzx eax, byte [edi + 0x2c]
shld esi, ecx, 8
cdq
shl ecx, 8
or esi, edx
or ecx, eax
movzx eax, byte [edi + 0x2b]
shld esi, ecx, 8
cdq
shl ecx, 8
or esi, edx
or ecx, eax
movzx eax, byte [edi + 0x2a]
shld esi, ecx, 8
cdq
shl ecx, 8
or ecx, eax
or esi, edx
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x3c], esi
movzx ecx, byte [edi + 0x1d]
movzx eax, byte [edi + 0x1c]
mov edi, 0x1ff
shl ecx, 8
mov esi, edi
or ecx, eax
mov eax, dword [esp + 0x1c]
cmp ecx, esi
cmovb esi, ecx
add eax, 0x2e
push esi
push eax
lea eax, [ebx + 0x50]
push eax
call fcn.00422f50
mov byte [ebx + esi + 0x50], 0
mov esi, dword [esp + 0x28]
movzx ecx, byte [esi + 0x21]
movzx eax, byte [esi + 0x20]
shl ecx, 8
or ecx, eax
cmp ecx, edi
cmovb edi, ecx
mov dword [ebx + 0x40], edi
movzx edx, byte [esi + 0x1f]
movzx eax, byte [esi + 0x1e]
movzx ecx, byte [esi + 0x1d]
shl edx, 8
or edx, eax
shl ecx, 8
movzx eax, byte [esi + 0x1c]
or ecx, eax
add ecx, 0x2e
lea eax, [esi + edx]
add eax, ecx
push edi
push eax
lea eax, [ebx + 0x250]
push eax
call fcn.00422f50
mov byte [ebx + edi + 0x250], 0
add esp, 0x1c
cmp dword [ebp + 0x48], 0
mov edi, dword [esp + 0x14]
je 0x40d878
cmp edi, dword [ebp + 0x10]
jae 0x40d878
lfence
mov ecx, dword [ebp + 0x48]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + edi*4]
add edx, dword [ecx]
je 0x40d878
movzx ecx, byte [edx + 0x1d]
movzx eax, byte [edx + 0x1c]
shl ecx, 8
or ecx, eax
je 0x40d86c
cmp byte [ecx + edx + 0x2d], 0x2f
jne 0x40d86c
mov eax, 1
jmp 0x40d881
movzx eax, byte [edx + 0x26]
shr eax, 4
and eax, 1
jmp 0x40d881
mov dword [ebp + 0x1c], 0x18
xor eax, eax
mov dword [ebx + 0x44], eax
cmp dword [ebp + 0x48], 0
je 0x40d8ad
cmp edi, dword [ebp + 0x10]
jae 0x40d8ad
lfence
mov ecx, dword [ebp + 0x48]
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
add eax, dword [ecx]
je 0x40d8ad
test byte [eax + 8], 0x41
mov eax, 0
setne al
jmp 0x40d8b6
mov dword [ebp + 0x1c], 0x18
xor eax, eax
mov dword [ebx + 0x48], eax
cmp dword [ebp + 0x48], 0
je 0x40d917
nop
cmp edi, dword [ebp + 0x10]
jae 0x40d917
lfence
mov ecx, dword [ebp + 0x48]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + edi*4]
add edx, dword [ecx]
je 0x40d917
movzx ecx, byte [edx + 0xb]
movzx eax, byte [edx + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 8]
je 0x40d8f6
cmp ecx, 8
je 0x40d8f6
mov dword [ebp + 0x1c], 4
jmp 0x40d91e
test al, 0x41
je 0x40d903
mov dword [ebp + 0x1c], 5
jmp 0x40d91e
test al, 0x20
je 0x40d910
mov dword [ebp + 0x1c], 6
jmp 0x40d91e
mov eax, 1
jmp 0x40d920
mov dword [ebp + 0x1c], 0x18
xor eax, eax
mov ecx, dword [ebx + 0x24]
mov edi, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x28]
mov dword [ebx + 0x4c], eax
mov eax, dword [ebx + 0x20]
cmp ecx, edi
jb 0x40d943
ja 0x40d939
cmp eax, edx
jbe 0x40d943
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
jmp 0x40d94b
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], edi
mov esi, dword [ebx + 0x3c]
cmp dword [esp + 0x14], esi
mov esi, dword [esp + 0x18]
jb 0x40d977
ja 0x40d967
mov ebp, dword [esp + 0x1c]
cmp ebp, dword [ebx + 0x38]
mov ebp, dword [esp + 0x10]
jbe 0x40d977
cmp ecx, edi
jb 0x40d971
ja 0x40d97d
cmp eax, edx
ja 0x40d97d
mov eax, edx
mov ecx, edi
jmp 0x40d97d
mov eax, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x3c]
nop dword [eax]
cmp eax, 0xffffffff
jne 0x40d9f5
test ecx, ecx
jne 0x40d9f5
movzx edi, byte [esi + 0x1f]
movzx eax, byte [esi + 0x1e]
shl edi, 8
or edi, eax
je 0x40d9f5
movzx ecx, byte [esi + 0x1d]
movzx eax, byte [esi + 0x1c]
add esi, 0x2e
shl ecx, 8
or ecx, eax
add esi, ecx
nop word [eax + eax]
cmp edi, 4
jb 0x40dc01
movzx ecx, byte [esi + 3]
movzx eax, byte [esi + 2]
shl ecx, 8
or ecx, eax
lea eax, [ecx + 4]
cmp eax, edi
ja 0x40dc01
movzx edx, byte ds:[esi + 1]
movzx eax, byte [esi]
shl edx, 8
or edx, eax
cmp edx, 1
je 0x40da0f
add esi, 4
mov eax, 0xfffffffc
sub eax, ecx
add esi, ecx
add edi, eax
jne 0x40d9b0
pop esi
pop edi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00421141
add esp, 0x38
ret 0xc
cmp dword [ebx + 0x28], 0xffffffff
lea ebp, [esi + 4]
jne 0x40dab4
cmp dword [ebx + 0x2c], 0
jne 0x40dab4
cmp ecx, 8
jb 0x40dbfd
movzx eax, byte [ebp + 7]
cdq
mov esi, eax
mov edi, edx
movzx eax, byte [ebp + 6]
shld edi, esi, 8
cdq
shl esi, 8
or edi, edx
or esi, eax
movzx eax, byte [ebp + 5]
shld edi, esi, 8
cdq
shl esi, 8
or edi, edx
or esi, eax
movzx eax, byte [ebp + 4]
shld edi, esi, 8
cdq
shl esi, 8
or edi, edx
or esi, eax
movzx eax, byte [ebp + 3]
shld edi, esi, 8
cdq
shl esi, 8
or edi, edx
or esi, eax
movzx eax, byte [ebp + 2]
shld edi, esi, 8
cdq
shl esi, 8
or edi, edx
or esi, eax
movzx eax, byte [ebp + 1]
shld edi, esi, 8
cdq
shl esi, 8
or edi, edx
or esi, eax
movzx eax, byte [ebp]
shld edi, esi, 8
cdq
add ebp, 8
shl esi, 8
or edi, edx
or esi, eax
mov dword [ebx + 0x2c], edi
mov dword [ebx + 0x28], esi
add ecx, 0xfffffff8
cmp dword [ebx + 0x20], 0xffffffff
jne 0x40db56
cmp dword [ebx + 0x24], 0
jne 0x40db56
cmp ecx, 8
jb 0x40dbfd
movzx eax, byte [ebp + 7]
cdq
mov esi, eax
mov edi, edx
movzx eax, byte [ebp + 6]
shld edi, esi, 8
cdq
shl esi, 8
or edi, edx
or esi, eax
movzx eax, byte [ebp + 5]
shld edi, esi, 8
cdq
shl esi, 8
or edi, edx
or esi, eax
movzx eax, byte [ebp + 4]
shld edi, esi, 8
cdq
shl esi, 8
or edi, edx
or esi, eax
movzx eax, byte [ebp + 3]
shld edi, esi, 8
cdq
shl esi, 8
or edi, edx
or esi, eax
movzx eax, byte [ebp + 2]
shld edi, esi, 8
cdq
shl esi, 8
or edi, edx
or esi, eax
movzx eax, byte [ebp + 1]
shld edi, esi, 8
cdq
shl esi, 8
or edi, edx
or esi, eax
movzx eax, byte [ebp]
shld edi, esi, 8
cdq
add ebp, 8
shl esi, 8
or edi, edx
or esi, eax
mov dword [ebx + 0x24], edi
mov dword [ebx + 0x20], esi
sub ecx, 8
cmp dword ds:[ebx + 0x38], 0xffffffff
jne 0x40d9f5
cmp dword [ebx + 0x3c], 0
jne 0x40d9f5
cmp ecx, 8
jb 0x40dbfd
movzx eax, byte [ebp + 7]
cdq
mov ecx, eax
mov esi, edx
movzx eax, byte [ebp + 6]
shld esi, ecx, 8
cdq
shl ecx, 8
or esi, edx
or ecx, eax
movzx eax, byte [ebp + 5]
shld esi, ecx, 8
cdq
shl ecx, 8
or esi, edx
or ecx, eax
movzx eax, byte [ebp + 4]
shld esi, ecx, 8
cdq
shl ecx, 8
or esi, edx
or ecx, eax
movzx eax, byte [ebp + 3]
shld esi, ecx, 8
cdq
shl ecx, 8
or esi, edx
or ecx, eax
movzx eax, byte [ebp + 2]
shld esi, ecx, 8
cdq
shl ecx, 8
or esi, edx
or ecx, eax
movzx eax, byte [ebp + 1]
shld esi, ecx, 8
cdq
shl ecx, 8
or esi, edx
or ecx, eax
movzx eax, byte [ebp]
shld esi, ecx, 8
cdq
shl ecx, 8
or ecx, eax
or esi, edx
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x3c], esi
jmp 0x40d9f5
mov ebp, dword [esp + 0x10]
pop esi
pop edi
mov dword [ebp + 0x1c], 9
xor eax, eax
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00421141
add esp, 0x38
ret 0xc
nop
test ebp, ebp
je 0x40dc2b
mov dword [ebp + 0x1c], 0x18
mov ecx, dword [esp + 0x40]
xor eax, eax
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00421141
add esp, 0x38
ret 0xc