Function at 0x421179
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x578
push ebx
xor ebx, ebx
push esi
push edi
push ebx
lea eax, [ebp - 0x574]
push eax
mov eax, dword [ebp + 8]
push ebx
push ebx
mov edi, 0x400
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x38], ebx
mov byte [ebp - 9], bl
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x11], bl
call fcn.00422015
test eax, eax
jge 0x4211cb
mov dword [ebp - 8], 0xc0000098
jmp 0x421893
lea eax, [ebp - 0x574]
call fcn.0042e5fd
mov edi, eax
cmp edi, ebx
je 0x4211bf
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x58]
call fcn.00421f71
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x4211bf
test byte [ebp + 0x18], 2
je 0x42123f
movzx ecx, word [edi + 4]
mov eax, 0x14c
mov edx, eax
cmp dx, cx
je 0x42123f
movzx ecx, cx
cmp ecx, eax
je 0x421233
cmp ecx, 0x200
je 0x421227
cmp ecx, 0x8664
je 0x421227
mov dword [ebp - 8], 0xc000007b
jmp 0x421893
mov dword [ebp - 8], 0xc000035a
jmp 0x421893
mov dword [ebp - 8], 0xc0000359
jmp 0x421893
test byte [ebp + 0x18], 0x80
mov esi, 0x20b
je 0x42125a
mov eax, esi
cmp word [edi + 0x18], ax
movzx eax, word [edi + 0x5c]
cmp ax, 0x10
jne 0x42121b
movzx ecx, word [edi + 0x18]
mov eax, esi
cmp cx, ax
test dword [ebp + 0x18], 0x200
movzx eax, word [edi + 0x5e]
je 0x421278
test al, al
jns 0x421278
or dword [ebp + 0x18], 0x30
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x4c], edx
and dword [ebp - 0x4c], 0x10
jne 0x421289
cmp dword [ebp + 0x14], ebx
je 0x42128d
mov byte [ebp - 9], 1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x50]
lea esi, [eax + 0xfff]
and esi, 0xfffff000
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
cmp ebx, ebx
ja 0x4212b3
cmp esi, 0xffffffff
jbe 0x4212bf
mov dword [ebp - 8], 0xc000007b
jmp 0x421863
test dl, 4
je 0x4212df
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
cmp ebx, dword [ebp - 0x18]
ja 0x4212f5
jb 0x4212d4
cmp ecx, esi
jae 0x4212f5
mov dword [eax], esi
mov dword [ebp - 8], 0xc0000023
jmp 0x4212f5
push edx
push 0xd0000009
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00420e73
mov dword [ebp - 8], eax
cmp dword [ebp - 8], ebx
jl 0x421863
mov eax, 0x20b
cmp word [edi + 0x18], ax
mov edi, dword [edi + 0x54]
xor eax, eax
mov dword [ebp - 0x28], edi
cmp eax, ebx
ja 0x421319
jb 0x4212b3
cmp esi, edi
jb 0x4212b3
mov eax, dword [ebp + 8]
push ebx
push dword [ebp - 0x10]
push ebx
push ebx
call fcn.00422015
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x421863
mov eax, dword [ebp - 0x10]
call fcn.0042e5fd
mov ebx, eax
movzx eax, word [ebx + 6]
push dword [ebx + 0x54]
mov dword [ebp - 0x54], eax
movzx eax, word [ebx + 0x14]
push dword [ebp - 0x10]
lea eax, [eax + ebx + 0x18]
mov dword [ebp - 0x34], eax
mov eax, 0x10002
xor ecx, ecx
call fcn.00420587
cmp byte [ebp - 9], 0
movzx eax, ax
mov dword [ebp - 0x30], eax
je 0x42146c
mov eax, 0x20b
lea esi, [ebx + 0xa8]
cmp word [ebx + 0x18], ax
je 0x421387
lea esi, [ebx + 0x98]
xor edi, edi
mov dword [ebp - 0x38], esi
cmp dword [esi], edi
je 0x4213e3
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4213e3
push edi
push 0xd000000a
push edi
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00420e73
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x42183c
mov eax, dword [ebp + 8]
push edi
push dword [ebp - 0x20]
push edi
push dword [esi]
mov edi, dword [esi + 4]
call fcn.00422015
mov dword [ebp - 8], eax
test eax, eax
jl 0x42183c
push dword [esi + 4]
push dword [ebp - 0x20]
call fcn.004500f9
mov dword [ebp - 0x134], eax
jmp 0x4213ed
mov dword [ebp - 0x134], 0x8004
cmp dword [ebp - 0x134], 0
jne 0x421402
mov dword [ebp - 8], 0xc0000098
jmp 0x42183c
push 0
lea eax, [ebp - 0x134]
push eax
call fcn.0044f7a6
lea edi, [ebx + 0x58]
mov eax, 0x20b
mov eax, edi
sub eax, dword [ebp - 0x10]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x134]
push eax
call fcn.0044f838
add edi, 4
mov eax, esi
sub eax, edi
push eax
push edi
lea eax, [ebp - 0x134]
push eax
call fcn.0044f838
add esi, 8
mov edi, 0x20b
mov eax, edi
cmp word [ebx + 0x18], ax
mov eax, dword [ebx + 0x54]
sub eax, esi
add eax, dword [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x134]
push eax
call fcn.0044f838
mov eax, dword [ebx + 0x54]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
and dword [ebp - 0x28], 0
add ecx, eax
cmp dword [ebp - 0x54], 0
jbe 0x4215e9
mov esi, dword [ebp - 0x34]
add esi, 0xc
mov eax, dword [esi]
mov edx, dword [ebp - 0x10]
xor edi, edi
and dword [ebp - 0x18], edi
add edx, eax
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x18], edi
jb 0x4216b1
ja 0x4214ab
cmp dword [ebp - 0x1c], eax
jb 0x4216b1
cmp edx, dword [ebp - 0x10]
jb 0x4216b1
cmp ecx, edx
jae 0x4214c6
sub edx, ecx
push edx
push 0
push ecx
call fcn.00450c60
add esp, 0xc
mov eax, dword [esi + 4]
mov ecx, dword [esi - 4]
lea edi, [eax + 1]
and edi, 0xfffffffe
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
test ecx, ecx
jne 0x4214e1
mov ecx, eax
mov dword [ebp - 0x40], eax
cmp dword [esi + 8], 0
jne 0x4214ed
and dword [ebp - 0x44], 0
jmp 0x4214f4
cmp ecx, eax
jae 0x4214f4
mov dword [ebp - 0x44], ecx
mov eax, dword [esi]
lea edx, [ebp - 0x50]
push edx
push ecx
push eax
call fcn.00402311
test eax, eax
jl 0x4216b1
mov eax, dword [ebp - 0x50]
xor ecx, ecx
cmp dword [ebp - 0x18], ecx
jb 0x4216b1
ja 0x421522
cmp dword [ebp - 0x1c], eax
jb 0x4216b1
lea eax, [ebp - 0x50]
push eax
push edi
push dword [esi]
call fcn.00402311
mov dword [ebp - 8], eax
test eax, eax
jl 0x4216b1
mov eax, dword [ebp - 0x50]
xor ecx, ecx
cmp dword [ebp - 0x18], ecx
jb 0x4216b1
ja 0x421552
cmp dword [ebp - 0x1c], eax
jb 0x4216b1
cmp dword [ebp - 0x44], ecx
je 0x4215b3
mov eax, dword [ebp + 8]
push 0
push dword [ebp - 0x34]
push 0
push dword [esi + 8]
call fcn.00422015
mov dword [ebp - 8], eax
test eax, eax
jl 0x42183c
mov eax, dword [esi + 8]
movzx ecx, word [ebp - 0x30]
add eax, edi
push edi
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
push edi
mov eax, 0x10002
call fcn.00420587
cmp byte [ebp - 9], 0
movzx eax, ax
mov dword [ebp - 0x30], eax
je 0x4215b6
push dword [esi + 4]
lea eax, [ebp - 0x134]
push edi
push eax
call fcn.0044f838
mov eax, dword [esi + 4]
add dword [ebp - 0x24], eax
jmp 0x4215b6
mov edi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x40]
jae 0x4215d1
mov ecx, dword [ebp - 0x40]
sub ecx, eax
push ecx
add eax, edi
push 0
push eax
call fcn.00450c60
add esp, 0xc
mov eax, dword [ebp - 0x40]
inc dword [ebp - 0x28]
lea ecx, [eax + edi]
mov eax, dword [ebp - 0x28]
add esi, 0x28
cmp eax, dword [ebp - 0x54]
jb 0x421488
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
add eax, edx
cmp ecx, eax
jae 0x421603
sub eax, ecx
push eax
push 0
push ecx
call fcn.00450c60
add esp, 0xc
mov ecx, dword [ebp - 0x58]
mov esi, ecx
sub esi, dword [ebp - 0x2c]
je 0x421675
mov eax, 0x400
mov dword [ebp - 0x48], esi
cmp esi, eax
jb 0x42161c
mov dword [ebp - 0x48], eax
mov edi, dword [ebp - 0x48]
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x574]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp - 0x2c]
call fcn.00422015
mov dword [ebp - 8], eax
test eax, eax
jl 0x4213f6
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4213f6
add dword [ebp - 0x2c], eax
movzx ecx, word [ebp - 0x30]
push eax
sub esi, eax
lea eax, [ebp - 0x574]
push eax
mov eax, 0x10002
call fcn.00420587
movzx eax, ax
mov dword [ebp - 0x30], eax
test esi, esi
jne 0x42160d
mov ecx, dword [ebp - 0x58]
movzx edx, word [ebx + 0x58]
mov ax, word [ebp - 0x30]
cmp ax, dx
sbb esi, esi
neg esi
add si, dx
movzx edx, word [ebx + 0x5a]
sub ax, si
cmp ax, dx
sbb esi, esi
neg esi
sub ax, si
sub ax, dx
movzx eax, ax
add eax, ecx
cmp eax, dword [ebx + 0x58]
je 0x4216bd
mov dword [ebp - 8], 0xc0000221
jmp 0x42183c
mov dword [ebp - 8], 0xc000007b
jmp 0x42183c
cmp byte [ebp - 9], 0
je 0x4217cc
sub ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 4]
mov edi, ecx
cmp eax, edi
ja 0x4213f6
sub edi, eax
je 0x421729
push 0
push 0xd000000a
push 0
push edi
lea eax, [ebp - 0x3c]
push eax
call fcn.00420e73
mov dword [ebp - 8], eax
test eax, eax
jl 0x42182e
mov eax, dword [ebp + 8]
push 0
push dword [ebp - 0x3c]
push 0
push dword [ebp - 0x24]
call fcn.00422015
mov dword [ebp - 8], eax
test eax, eax
jl 0x42182e
push edi
push dword [ebp - 0x3c]
lea eax, [ebp - 0x134]
push eax
call fcn.0044f838
lea eax, [ebp - 0x174]
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.0044f89e
cmp dword [ebp + 0x14], 0
je 0x421750
mov edi, dword [ebp + 0x14]
push 0x10
pop ecx
lea esi, [ebp - 0x174]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x4c], 0
je 0x4217cc
mov ecx, dword [ebp + 0x18]
xor eax, eax
test cl, cl
jns 0x421762
push 7
pop eax
test ecx, 0x400
je 0x42176d
push 7
pop eax
test cl, 0x40
je 0x421775
or eax, 4
test ecx, 0x800
je 0x421780
or eax, 2
push eax
lea eax, [ebp - 0x174]
push eax
push dword [ebp - 0x134]
mov eax, dword [ebp + 8]
push dword [ebp - 0x20]
push dword [eax + 0xc]
mov eax, dword [ebp - 0x38]
call fcn.00421c6c
mov dword [ebp - 8], eax
test eax, eax
jge 0x4217c8
push dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0xc]
call fcn.00421e9e
mov dword [ebp - 8], eax
test eax, eax
jge 0x4217c2
test byte [ebp + 0x18], 0x20
jne 0x42182e
and dword [ebp - 8], 0
jmp 0x4217cc
mov byte [ebp - 0x11], 1
test dword [ebp + 0x18], 0x100
jne 0x421806
mov eax, 0x20b
cmp word [ebx + 0x18], ax
jne 0x4217eb
mov ecx, dword [ebx + 0x34]
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x58], ecx
jmp 0x4217f2
mov eax, dword [ebx + 0x34]
and dword [ebp - 0x58], 0
cmp dword [ebp - 0x10], eax
je 0x421806
push dword [ebp - 0x10]
call fcn.0042ec9d
mov dword [ebp - 8], eax
test eax, eax
jl 0x42182e
cmp byte [ebp - 0x11], 0
jne 0x421818
push 0
push 0x10000007
call fcn.0042087e
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
je 0x42182e
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp dword [ebp - 0x3c], 0
je 0x42183c
push dword [ebp - 0x3c]
call fcn.00428ded
cmp dword [ebp - 0x20], 0
je 0x421858
cmp dword [ebp - 0x38], 0
je 0x421858
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 4]
mov edi, dword [ebp - 0x20]
push 0
call fcn.00420f7b
cmp dword [ebp - 8], 0
jge 0x421893
mov esi, dword [ebp - 0x1c]
xor ebx, ebx
cmp dword [ebp - 0x10], ebx
je 0x421893
test byte [ebp + 0x18], 4
jne 0x421893
test byte [ebp + 0x18], 1
je 0x42188b
xor eax, eax
push eax
push esi
push dword [ebp - 0x10]
call fcn.0042a857
push ebx
push dword [ebp - 0x10]
call fcn.00428ece
jmp 0x421893
push dword [ebp - 0x10]
call fcn.00428ded
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x14