Function at 0x511850
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [0x6b21fc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x8c]
cmp eax, dword [ecx + 8]
jbe 0x512191
sub esp, 0x10c
lea eax, [0x53d1e0]
mov dword [esp], eax
call fcn.0040c3d0
mov eax, dword [0x6b2320]
mov edi, dword [esp + 4]
mov dword [esp + 0x58], edi
test eax, eax
je 0x5118b2
lea eax, [0x53d1e0]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x110]
mov dword [esp + 8], eax
call fcn.004111d0
mov edi, dword [esp + 0x58]
lea esi, [esp + 0x110]
mov ecx, 0x9dc
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x58]
movzx edx, byte [eax + 0x2718]
movzx ebx, byte [eax + 0x2719]
shl ebx, 4
movzx ebp, byte [eax + 0x272d]
xchg ebp, eax
mov byte [esp + 0x2b], al
xchg ebp, eax
or edx, ebx
mov byte [esp + 0x2d], dl
lea ebx, [0x538980]
mov dword [esp], ebx
call fcn.0040c3d0
mov eax, dword [esp + 4]
mov dword [esp + 0x44], eax
mov word [eax + 2], 0x2000
movzx edx, byte [esp + 0x2b]
mov byte [eax], dl
lea edi, [esp + 0x74]
xor eax, eax
call fcn.00468aa9
lea edi, [esp + 0x90]
call fcn.00468a91
lea eax, [esp + 0x90]
mov dword [esp + 0x80], eax
call fcn.00453d20
mov eax, dword [esp]
mov dword [esp + 0x7c], eax
lea eax, [0x52e4c0]
mov dword [esp], eax
lea edx, [esp + 0x74]
mov dword [esp + 4], edx
lea ebx, [0x5d34b8]
mov dword [esp + 8], ebx
call fcn.0040d770
mov eax, dword [esp + 0xc]
mov dword [eax + 4], 0x1f40
mov dword [eax + 8], 0x1f40
mov edx, dword [0x6b2320]
mov ebx, dword [esp + 0x58]
lea ebp, [ebx + 8]
test edx, edx
je 0x51198b
call fcn.00468870
mov dword [edi], ebp
mov ecx, dword [eax]
mov dword [edi + 4], ecx
mov dword [eax], ebp
lea eax, [0x52e4c0]
mov dword [esp], eax
lea ecx, [esp + 0x74]
mov dword [esp + 4], ecx
lea edx, [0x5d346e]
mov dword [esp + 8], edx
call fcn.0040d770
mov eax, dword [esp + 0xc]
mov dword [eax + 4], 0x3e8
mov dword [eax + 8], 0x3e8
mov ecx, dword [0x6b2320]
mov edx, dword [esp + 0x58]
lea ebx, [edx + 0x1f48]
test ecx, ecx
je 0x5119df
call fcn.00468870
mov dword [edi], ebx
mov ecx, dword [eax]
mov dword [edi + 4], ecx
mov dword [eax], ebx
lea eax, [0x52e4c0]
mov dword [esp], eax
lea ecx, [esp + 0x74]
mov dword [esp + 4], ecx
lea edx, [0x5d3470]
mov dword [esp + 8], edx
call fcn.0040d770
mov eax, dword [esp + 0xc]
mov dword [eax + 4], 0x3e8
mov dword [eax + 8], 0x3e8
mov ecx, dword [0x6b2320]
mov edx, dword [esp + 0x58]
lea ebx, [edx + 0x2330]
test ecx, ecx
je 0x511a33
call fcn.00468870
mov dword [edi], ebx
mov ecx, dword [eax]
mov dword [edi + 4], ecx
mov dword [eax], ebx
lea eax, [0x528640]
mov dword [esp], eax
call fcn.0040c3d0
mov eax, dword [esp + 4]
mov dword [esp + 0x54], eax
movzx ecx, byte [esp + 0x2d]
mov byte [eax], cl
lea ecx, [0x52e4c0]
mov dword [esp], ecx
lea ecx, [esp + 0x74]
mov dword [esp + 4], ecx
lea edx, [0x5d3472]
mov dword [esp + 8], edx
call fcn.0040d770
mov eax, dword [esp + 0xc]
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov ecx, dword [0x6b2320]
test ecx, ecx
jne 0x511a94
mov ecx, dword [esp + 0x54]
jmp 0x511aa4
call fcn.00468870
mov ecx, dword [esp + 0x54]
mov dword [edi], ecx
mov edx, dword [eax]
mov dword [edi + 4], edx
mov dword [eax], ecx
mov eax, dword [esp + 0x44]
mov dword [esp], eax
lea ecx, [esp + 0x74]
mov dword [esp + 4], ecx
call fcn.0050bdb0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test eax, eax
jne 0x511b39
mov eax, dword [esp + 0x58]
movzx ecx, byte [eax + 0x272f]
test cl, cl
je 0x511ae4
nop
mov ecx, dword [esp + 0x44]
mov edx, 0x4800
jmp 0x511bc9
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov eax, dword [esp + 0x2880]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2884]
mov dword [esp + 8], eax
call fcn.0050c280
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x288c], ecx
mov dword [esp + 0x2888], edx
mov dword [esp + 0x2890], eax
mov dword [esp + 0x2894], ebx
add esp, 0x10c
ret
mov eax, dword [esp + 0xc]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
test eax, eax
je 0x511b54
mov eax, dword [eax + 4]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
lea eax, [0x54c063]
mov dword [esp], eax
mov dword [esp + 4], 0x18
lea eax, [esp + 0x5c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004a1ec0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x288c], 0
mov dword [esp + 0x2888], 0
mov dword [esp + 0x2890], eax
mov dword [esp + 0x2894], ecx
add esp, 0x10c
ret
movzx ebx, dx
mov byte [ecx + ebx + 0x10004], 1
inc edx
cmp dx, 0x8e50
jb 0x511bbd
mov byte [esp + 0x2c], 2
mov eax, dword [0x68ba78]
lea ecx, [0x52bf20]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea eax, [esp + 0x2c]
mov dword [esp + 8], eax
call fcn.0040d220
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 4]
mov dword [esp + 0x38], eax
lea ecx, [0x52abc0]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.0044f1d0
mov eax, dword [0x68ba78]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x50], ecx
lea edx, [0x52bf20]
mov dword [esp], edx
mov dword [esp + 4], eax
lea eax, [esp + 0x2c]
mov dword [esp + 8], eax
call fcn.0040d220
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x38]
cmp ecx, edx
jl 0x511c4f
mov ecx, edx
mov eax, dword [eax]
mov ebx, dword [esp + 0x50]
cmp eax, ebx
je 0x511c71
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.004691a0
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x50]
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], edx
call fcn.0050c0b0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
test eax, eax
je 0x511d1d
mov eax, dword [esp + 0x14]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
test eax, eax
je 0x511cb4
mov eax, dword [eax + 4]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
lea eax, [0x54c033]
mov dword [esp], eax
mov dword [esp + 4], 0x18
lea eax, [esp + 0x5c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004a1ec0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x288c], 0
mov dword [esp + 0x2888], 0
mov dword [esp + 0x2890], eax
mov dword [esp + 0x2894], ecx
add esp, 0x10c
ret
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 0x2758]
test ecx, ecx
je 0x5120ef
mov edx, dword [eax + 0x2754]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.004d8770
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x511dd5
mov eax, dword [esp + 0xc]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
test eax, eax
je 0x511d6c
mov eax, dword [eax + 4]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
lea eax, [0x54b18a]
mov dword [esp], eax
mov dword [esp + 4], 0x16
lea eax, [esp + 0x5c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004a1ec0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x288c], 0
mov dword [esp + 0x2888], 0
mov dword [esp + 0x2890], eax
mov dword [esp + 0x2894], ecx
add esp, 0x10c
ret
mov edx, dword [esp + 8]
mov ecx, dword [edx + 4]
nop
cmp ecx, 6
jbe 0x512186
cmp ecx, 7
jbe 0x51217a
mov ebx, dword [edx]
movzx ebp, byte [ebx + 6]
movzx esi, byte [ebx + 7]
shl ebp, 8
add ebp, esi
cmp ecx, 8
jbe 0x51216e
cmp ecx, 9
jbe 0x512162
mov dword [esp + 0x48], edx
movzx esi, byte [ebx + 8]
movzx edi, byte [ebx + 9]
shl esi, 8
add esi, edi
test si, si
jne 0x511e4d
movzx eax, bp
cmp ecx, eax
jb 0x51215d
mov ebp, dword [edx + 8]
sub ebp, eax
mov esi, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, eax
sub ecx, eax
lea eax, [ebx + ebp]
jmp 0x511f29
mov word [esp + 0x2e], 0
mov ecx, dword [edx + 4]
cmp ecx, 8
jbe 0x512153
mov ebx, dword [edx]
movzx ebx, byte [ebx + 8]
mov byte [esp + 0x2e], bl
mov ecx, dword [edx + 4]
cmp ecx, 9
jbe 0x512149
mov ebx, dword [edx]
movzx ebx, byte [ebx + 9]
mov byte [esp + 0x2f], bl
mov ecx, dword [edx + 4]
movzx eax, bp
cmp ecx, eax
jb 0x512144
mov ebx, dword [edx]
mov ebp, dword [edx + 8]
sub ecx, eax
lea esi, [ecx + 2]
sub ebp, eax
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, eax
lea eax, [ebx + ebp]
cmp esi, 2
ja 0x511eb8
lea ebx, [esp + 0x2e]
mov ebp, 2
jmp 0x511efe
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x2e]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], ecx
lea eax, [0x52abc0]
mov dword [esp + 0x10], eax
call fcn.0044f350
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ebx, eax
mov ebp, ecx
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], esi
mov dword [esp + 0x40], ebx
lea edx, [ebx + 2]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.004691a0
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], esi
call fcn.0050c0b0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
test eax, eax
je 0x511fd5
mov eax, dword [esp + 0x14]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
test eax, eax
je 0x511f6c
mov eax, dword [eax + 4]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
lea eax, [0x54c033]
mov dword [esp], eax
mov dword [esp + 4], 0x18
lea eax, [esp + 0x5c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004a1ec0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x288c], 0
mov dword [esp + 0x2888], 0
mov dword [esp + 0x2890], eax
mov dword [esp + 0x2894], ecx
add esp, 0x10c
ret
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], ecx
call fcn.005116e0
mov eax, dword [esp + 0x58]
movzx ecx, byte [eax + 0x272e]
test cl, cl
jne 0x51209a
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov ecx, dword [eax + 0x2754]
mov eax, dword [eax + 0x2758]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00409c10
mov eax, dword [esp + 8]
lea ecx, [0x52a880]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
lea eax, [0x540b40]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x70], eax
mov eax, dword [0x68b9cc]
lea ecx, [0x5d4354]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea eax, [0x548c11]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0x10
lea eax, [esp + 0x64]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 2
call fcn.004a48b0
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov eax, dword [esp + 0x2880]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2884]
mov dword [esp + 8], eax
call fcn.0050c280
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x288c], ecx
mov dword [esp + 0x2888], edx
mov dword [esp + 0x2890], eax
mov dword [esp + 0x2894], ebx
add esp, 0x10c
ret
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov eax, dword [esp + 0x2880]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2884]
mov dword [esp + 8], eax
call fcn.0050c280
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x288c], ecx
mov dword [esp + 0x2888], edx
mov dword [esp + 0x2890], eax
mov dword [esp + 0x2894], ebx
add esp, 0x10c
ret
call fcn.00468930
mov eax, 9
call fcn.004688d0
mov eax, 8
call fcn.004688d0
call fcn.00468930
mov eax, 9
mov ecx, eax
call fcn.004688d0
mov eax, 8
mov ecx, eax
call fcn.004688d0
mov eax, 7
mov ecx, eax
call fcn.004688d0
mov eax, 6
call fcn.004688d0
nop
call fcn.00467460
jmp fcn.00511850