Function at 0x5121a0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x6b21fc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x88]
cmp eax, dword [ecx + 8]
jbe 0x512a77
sub esp, 0x108
lea eax, [0x53bf00]
mov dword [esp], eax
call fcn.0040c3d0
mov eax, dword [0x6b2320]
mov edi, dword [esp + 4]
mov dword [esp + 0x54], edi
test eax, eax
je 0x512202
lea eax, [0x53bf00]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x10c]
mov dword [esp + 8], eax
call fcn.004111d0
mov edi, dword [esp + 0x54]
lea esi, [esp + 0x10c]
mov ecx, 0x8e2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x54]
movzx edx, byte [eax + 0x2345]
mov byte [esp + 0x28], dl
lea ebx, [0x538980]
mov dword [esp], ebx
call fcn.0040c3d0
mov eax, dword [esp + 4]
mov dword [esp + 0x40], eax
mov word [eax + 2], 0x2000
movzx edx, byte [esp + 0x28]
mov byte [eax], dl
lea edi, [esp + 0x70]
xor eax, eax
call fcn.00468aa9
lea edi, [esp + 0x8c]
call fcn.00468a91
lea eax, [esp + 0x8c]
mov dword [esp + 0x7c], eax
call fcn.00453d20
mov eax, dword [esp]
mov dword [esp + 0x78], eax
lea eax, [0x52e4c0]
mov dword [esp], eax
lea edx, [esp + 0x70]
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 + 0x54]
lea ebp, [ebx + 8]
test edx, edx
je 0x5122bf
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 + 0x70]
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 + 0x54]
lea ebx, [edx + 0x1f48]
test ecx, ecx
je 0x512313
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 + 0x50], eax
mov ecx, dword [esp + 0x54]
movzx edx, byte [ecx + 0x2330]
mov byte [eax], dl
lea edx, [0x52e4c0]
mov dword [esp], edx
lea edx, [esp + 0x70]
mov dword [esp + 4], edx
lea ebx, [0x5d3470]
mov dword [esp + 8], ebx
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 0x51237a
mov ecx, dword [esp + 0x50]
jmp 0x51238a
call fcn.00468870
mov ecx, dword [esp + 0x50]
mov dword [edi], ecx
mov edx, dword [eax]
mov dword [edi + 4], edx
mov dword [eax], ecx
mov eax, dword [esp + 0x40]
mov dword [esp], eax
lea ecx, [esp + 0x70]
mov dword [esp + 4], ecx
call fcn.0050bdb0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test eax, eax
jne 0x51241f
mov eax, dword [esp + 0x54]
movzx ecx, byte [eax + 0x2347]
test cl, cl
je 0x5123ca
nop
mov ecx, dword [esp + 0x40]
mov edx, 0x4800
jmp 0x5124af
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov eax, dword [esp + 0x2494]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2498]
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 + 0x24a0], ecx
mov dword [esp + 0x249c], edx
mov dword [esp + 0x24a4], eax
mov dword [esp + 0x24a8], ebx
add esp, 0x108
ret
mov eax, dword [esp + 0xc]
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
test eax, eax
je 0x51243a
mov eax, dword [eax + 4]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
lea eax, [0x54c063]
mov dword [esp], eax
mov dword [esp + 4], 0x18
lea eax, [esp + 0x58]
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 + 0x24a0], 0
mov dword [esp + 0x249c], 0
mov dword [esp + 0x24a4], eax
mov dword [esp + 0x24a8], ecx
add esp, 0x108
ret
movzx ebx, dx
mov byte [ecx + ebx + 0x10004], 1
inc edx
cmp dx, 0x6b29
jb 0x5124a3
mov byte [esp + 0x29], 1
mov eax, dword [0x68ba78]
lea ecx, [0x52bf20]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea eax, [esp + 0x29]
mov dword [esp + 8], eax
call fcn.0040d220
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 4]
mov dword [esp + 0x34], 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 + 0x4c], ecx
lea edx, [0x52bf20]
mov dword [esp], edx
mov dword [esp + 4], eax
lea eax, [esp + 0x29]
mov dword [esp + 8], eax
call fcn.0040d220
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x34]
cmp ecx, edx
jl 0x512535
mov ecx, edx
mov eax, dword [eax]
mov ebx, dword [esp + 0x4c]
cmp eax, ebx
je 0x512557
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.004691a0
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp + 0x40]
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 0x512603
mov eax, dword [esp + 0x14]
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
test eax, eax
je 0x51259a
mov eax, dword [eax + 4]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
lea eax, [0x54c033]
mov dword [esp], eax
mov dword [esp + 4], 0x18
lea eax, [esp + 0x58]
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 + 0x24a0], 0
mov dword [esp + 0x249c], 0
mov dword [esp + 0x24a4], eax
mov dword [esp + 0x24a8], ecx
add esp, 0x108
ret
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x2370]
test ecx, ecx
je 0x5129d5
mov edx, dword [eax + 0x236c]
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 0x5126bb
mov eax, dword [esp + 0xc]
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
test eax, eax
je 0x512652
mov eax, dword [eax + 4]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
lea eax, [0x54b18a]
mov dword [esp], eax
mov dword [esp + 4], 0x16
lea eax, [esp + 0x58]
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 + 0x24a0], 0
mov dword [esp + 0x249c], 0
mov dword [esp + 0x24a4], eax
mov dword [esp + 0x24a8], ecx
add esp, 0x108
ret
mov edx, dword [esp + 8]
mov ecx, dword [edx + 4]
nop
cmp ecx, 6
jbe 0x512a6c
cmp ecx, 7
jbe 0x512a60
mov ebx, dword [edx]
movzx ebp, byte [ebx + 6]
movzx esi, byte [ebx + 7]
shl ebp, 8
add ebp, esi
cmp ecx, 8
jbe 0x512a54
cmp ecx, 9
jbe 0x512a48
mov dword [esp + 0x44], edx
movzx esi, byte [ebx + 8]
movzx edi, byte [ebx + 9]
shl esi, 8
add esi, edi
test si, si
jne 0x512733
movzx eax, bp
cmp ecx, eax
jb 0x512a43
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 0x51280f
mov word [esp + 0x2a], 0
mov ecx, dword [edx + 4]
cmp ecx, 8
jbe 0x512a39
mov ebx, dword [edx]
movzx ebx, byte [ebx + 8]
mov byte [esp + 0x2a], bl
mov ecx, dword [edx + 4]
cmp ecx, 9
jbe 0x512a2f
mov ebx, dword [edx]
movzx ebx, byte [ebx + 9]
mov byte [esp + 0x2b], bl
mov ecx, dword [edx + 4]
movzx eax, bp
cmp ecx, eax
jb 0x512a2a
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 0x51279e
lea ebx, [esp + 0x2a]
mov ebp, 2
jmp 0x5127e4
mov dword [esp + 0x38], ecx
mov dword [esp + 0x48], eax
lea eax, [esp + 0x2a]
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 + 0x48]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], esi
mov dword [esp + 0x3c], 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 + 0x2c]
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
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 0x5128bb
mov eax, dword [esp + 0x14]
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
test eax, eax
je 0x512852
mov eax, dword [eax + 4]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
lea eax, [0x54c033]
mov dword [esp], eax
mov dword [esp + 4], 0x18
lea eax, [esp + 0x58]
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 + 0x24a0], 0
mov dword [esp + 0x249c], 0
mov dword [esp + 0x24a4], eax
mov dword [esp + 0x24a8], ecx
add esp, 0x108
ret
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov ecx, dword [esp + 0x44]
mov dword [esp + 4], ecx
call fcn.005116e0
mov eax, dword [esp + 0x54]
movzx ecx, byte [eax + 0x2346]
test cl, cl
jne 0x512980
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov ecx, dword [eax + 0x236c]
mov eax, dword [eax + 0x2370]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00409c10
mov eax, dword [esp + 8]
lea ecx, [0x52a880]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
lea eax, [0x540b40]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x6c], 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 + 0x60]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 2
call fcn.004a48b0
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov eax, dword [esp + 0x2494]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2498]
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 + 0x24a0], ecx
mov dword [esp + 0x249c], edx
mov dword [esp + 0x24a4], eax
mov dword [esp + 0x24a8], ebx
add esp, 0x108
ret
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov eax, dword [esp + 0x2494]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2498]
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 + 0x24a0], ecx
mov dword [esp + 0x249c], edx
mov dword [esp + 0x24a4], eax
mov dword [esp + 0x24a8], ebx
add esp, 0x108
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.005121a0