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

Disassembly:
mov ecx, dword [0x9ec7ac]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 8]
cmp eax, dword [ecx + 8]
jbe 0x50f090
sub esp, 0x88
mov eax, 0
mov dword [esp + 0x84], eax
mov byte [esp + 0x33], 0
mov dword [esp + 0x94], 0
lea eax, [0x720ca0]
mov dword [esp], eax
call fcn.0040c5b0
mov eax, dword [esp + 4]
mov dword [eax + 0x18], 1
mov dword [eax + 0x1c], 0x2a05f200
mov dword [eax + 0x20], 1
mov dword [eax + 0x24], 2
mov dword [esp + 0x94], eax
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
lea eax, [0x50f0a0]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x94]
mov dword [esp + 0x80], eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x84], eax
mov byte [esp + 0x33], 1
call fcn.00511930
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x50ed0a
mov eax, dword [esp]
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x3c], ecx
xor edx, edx
jmp 0x50ed22
mov byte [esp + 0x33], 0
mov edx, dword [esp + 0x84]
mov eax, dword [edx]
call eax
add esp, 0x88
ret
inc edx
cmp edx, ecx
jge 0x50ed36
mov dword [esp + 0x40], edx
mov ebx, dword [eax + edx*4]
mov dword [esp + 0x74], ebx
mov ebp, dword [ebx + 0x1c]
jmp 0x50ed50
mov byte [esp + 0x33], 0
mov edx, dword [esp + 0x84]
mov eax, dword [edx]
call eax
add esp, 0x88
ret
mov ebp, dword [ebp + 8]
test ebp, ebp
je 0x50ed21
cmp dword [ebx + 0x44], 1
jne 0x50ed4d
mov dword [esp + 0x6c], ebp
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00480090
mov eax, dword [esp + 0xc]
test eax, eax
je 0x50ed87
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x6c]
jmp 0x50ed4d
mov eax, dword [esp + 4]
test eax, eax
je 0x50f05f
mov eax, dword [esp + 4]
lea ecx, [0x7aaef0]
cmp eax, ecx
jne 0x50ee45
mov eax, dword [esp + 8]
movzx edx, byte [eax + 4]
movzx ebx, byte [eax + 5]
movzx ebp, byte [eax + 6]
movzx eax, byte [eax + 7]
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov esi, dword [0x9a46f4]
cmp esi, 0x10
jl 0x50ede9
mov esi, 0x10
mov edi, dword [0x9a46f0]
lea ecx, [esp + 0x54]
cmp edi, ecx
je 0x50ee2d
mov byte [esp + 0x32], dl
mov byte [esp + 0x31], bl
xchg ebp, eax
mov byte [esp + 0x30], al
xchg ebp, eax
mov byte [esp + 0x2f], al
mov dword [esp], ecx
mov dword [esp + 4], edi
mov dword [esp + 8], esi
call fcn.00468df0
movzx eax, byte [esp + 0x2f]
movzx edx, byte [esp + 0x32]
movzx ebx, byte [esp + 0x31]
movzx ebp, byte [esp + 0x30]
mov byte [esp + 0x60], dl
mov byte [esp + 0x61], bl
xchg ebp, eax
mov byte [esp + 0x62], al
xchg ebp, eax
mov byte [esp + 0x63], al
lea eax, [esp + 0x54]
jmp 0x50eec3
lea ebx, [0x7aaf04]
cmp eax, ebx
jne 0x50f06b
mov eax, dword [esp + 8]
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
test byte [eax], al
add eax, 8
lea ebp, [esp + 0x44]
cmp ebp, eax
je 0x50ee98
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], 0x10
call fcn.00468df0
cmp byte [esp + 0x44], 0xfe
jne 0x50eebf
cmp byte [esp + 0x45], 0xc0
jne 0x50eebf
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x6c]
jmp 0x50ed4d
lea eax, [esp + 0x44]
mov dword [esp], eax
mov dword [esp + 4], 0x10
mov dword [esp + 8], 0x10
call fcn.00512260
mov eax, dword [esp + 0xc]
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x38], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov byte [esp + 8], 0x3a
call fcn.00403600
mov eax, dword [esp + 0xc]
test eax, eax
jl 0x50ef60
mov dword [esp], 0
lea eax, [0x7aa3cc]
mov dword [esp + 4], eax
mov dword [esp + 8], 1
mov ecx, dword [esp + 0x68]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x10], ecx
lea ecx, [0x731e44]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 2
lea edx, [0x731e42]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], 2
call fcn.00451da0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
jmp 0x50efa8
mov dword [esp], 0
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
lea eax, [0x7a8290]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
lea ecx, [0x731e42]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 2
call fcn.00451d10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x94]
mov ebp, dword [ebx + 8]
mov esi, dword [ebx + 4]
inc esi
mov edi, dword [ebx]
cmp ebp, esi
jae 0x50f021
mov dword [esp + 0x34], ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x78], ebx
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x6e41c0]
mov dword [esp + 0x10], eax
call fcn.0044e230
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x78]
mov dword [ebx + 8], eax
mov eax, dword [0x9eca70]
test eax, eax
je 0x50f013
call fcn.00468460
mov dword [edi], ecx
mov eax, dword [ebx]
mov dword [edi + 4], eax
mov dword [ebx], ecx
mov eax, dword [esp + 0x64]
mov esi, edx
mov edi, ecx
mov ecx, dword [esp + 0x34]
mov dword [ebx + 4], esi
lea ebx, [edi + esi*8 - 4]
mov dword [ebx], ecx
mov ecx, dword [0x9eca70]
lea ebx, [edi + esi*8 - 8]
test ecx, ecx
je 0x50f044
call fcn.00468460
mov dword [edi], eax
mov ecx, dword [ebx]
mov dword [edi + 4], ecx
mov dword [ebx], eax
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x6c]
jmp 0x50ed4d
lea ecx, [0x7aaef0]
lea ebx, [0x7aaf04]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x6c]
jmp 0x50ed4d
call fcn.00467050
jmp fcn.0050ec40