Function at 0x501ee0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x50235a
sub esp, 0x74
mov eax, dword [esp + 0x78]
movzx ecx, byte [eax + 0xc]
cmp cl, 3
jae 0x501f14
mov ecx, dword [0x98a138]
mov edx, dword [0x98a13c]
jmp 0x501f2b
cmp cl, 5
jbe 0x501f27
mov ecx, dword [0x98a140]
mov edx, dword [0x98a144]
jmp 0x501f2b
xor ecx, ecx
xor edx, edx
test ecx, ecx
jne 0x502029
mov word [esp + 0x17c], 0x29
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 8]
mov ebp, dword [eax + 0x20]
mov esi, dword [eax + 0x1c]
lea edi, [esp + 0x7c]
mov dword [esp], edi
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
call fcn.00502440
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
test eax, eax
jne 0x501fbe
mov ebx, dword [esp + 0x18c]
mov eax, ebp
mov ebp, dword [esp + 0x188]
test ebx, ebx
je 0x501fba
mov dword [esp + 0x40], ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], ebx
mov edx, eax
xor eax, eax
mov dword [esp + 0x50], eax
mov eax, edx
jmp 0x502204
mov edx, eax
jmp 0x50203b
mov dword [esp + 0x64], edx
mov dword [esp + 0x70], ebx
lea eax, [0x6e44c0]
mov dword [esp], eax
call fcn.0040b7f0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0xe
lea ecx, [0x71c253]
mov dword [eax], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 8], ecx
mov ecx, dword [0x9b1930]
test ecx, ecx
jne 0x502001
mov ecx, dword [esp + 0x64]
mov dword [eax + 0xc], ecx
jmp 0x502011
lea edi, [eax + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x64]
call fcn.00463350
mov eax, ecx
lea ecx, [0x79d8f8]
mov dword [esp + 0x194], ecx
mov dword [esp + 0x198], eax
add esp, 0x74
ret
mov dword [esp + 0x194], ecx
mov dword [esp + 0x198], edx
add esp, 0x74
ret
mov dword [esp + 0x3c], edi
mov ebx, eax
sub eax, edx
cmp eax, 0xffff
jle 0x50205c
mov ecx, dword [0x98a178]
mov edx, dword [0x98a17c]
mov eax, edx
mov edx, edi
jmp 0x5020db
cmp edi, ecx
jb 0x5021da
mov edx, edi
sub edi, ecx
mov ebp, edi
xchg edi, ebx
neg ebx
xchg edi, ebx
sar edi, 0x1f
and ecx, edi
add ecx, esi
cmp ebp, 2
jae 0x5020c2
mov dword [esp + 0x60], esi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x44], eax
lea eax, [0x6cd7a0]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], 2
call fcn.0044baf0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x58]
mov esi, dword [esp + 0x60]
mov ebp, eax
shr ax, 8
mov byte [ecx], al
xchg ebp, eax
mov byte [ecx + 1], al
xchg ebp, eax
mov word [esp + 0x184], bp
xor ecx, ecx
xor eax, eax
test ecx, ecx
jne 0x5021c8
mov edi, dword [esp + 0x78]
movzx ecx, byte [edi + 0xc]
cmp cl, 3
ja 0x502126
cmp cl, 2
jne 0x502108
lea ecx, [edi + 0x12]
mov ebp, dword [0x98a1c0]
mov eax, esi
mov esi, dword [0x98a1c4]
jmp 0x50216a
cmp cl, 3
jne 0x502162
lea ecx, [edi + 0x14]
mov ebp, dword [0x98a1a8]
mov edx, dword [0x98a1ac]
mov eax, esi
mov esi, edx
mov edx, dword [esp + 0x3c]
jmp 0x50216a
cmp cl, 4
jne 0x502144
lea ecx, [edi + 0x16]
mov ebp, dword [0x98a1b0]
mov edx, dword [0x98a1b4]
mov eax, esi
mov esi, edx
mov edx, dword [esp + 0x3c]
jmp 0x50216a
cmp cl, 5
jne 0x502162
lea ecx, [edi + 0x18]
mov ebp, dword [0x98a1a0]
mov edx, dword [0x98a1a4]
mov eax, esi
mov esi, edx
mov edx, dword [esp + 0x3c]
jmp 0x50216a
mov eax, esi
xor ebp, ebp
xor esi, esi
xor ecx, ecx
movzx edx, word [ecx]
cmp dx, 0xffff
je 0x50217b
inc edx
mov word [ecx], dx
xor ebp, ebp
xor esi, esi
test ebp, ebp
jne 0x5021b6
mov dword [edi + 4], ebx
mov ecx, dword [esp + 0x3c]
mov dword [edi + 8], ecx
mov ecx, dword [0x9b1930]
test ecx, ecx
jne 0x502197
mov dword [edi], eax
jmp 0x50219c
call fcn.00463350
mov dword [esp + 0x194], 0
mov dword [esp + 0x198], 0
add esp, 0x74
ret
mov dword [esp + 0x194], ebp
mov dword [esp + 0x198], esi
add esp, 0x74
ret
mov dword [esp + 0x194], ecx
mov dword [esp + 0x198], eax
add esp, 0x74
ret
mov edx, edi
call fcn.00463410
mov edx, dword [esp + 0x6c]
lea ebp, [edx + 0x10]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x6c], ebp
mov ecx, dword [ebp + 8]
mov dword [esp + 0x4c], ecx
mov edx, dword [ebp + 4]
mov dword [esp + 0x68], edx
movzx ebp, word [ebp]
mov word [esp + 0x32], bp
lea ebx, [eax + 2]
cmp edi, ebx
jae 0x502268
mov dword [esp + 0x34], eax
lea ecx, [0x6cd7a0]
mov dword [esp], ecx
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ebx
call fcn.0044baf0
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
lea ebx, [eax + 2]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x68]
movzx ebp, word [esp + 0x32]
shr bp, 8
xchg ebp, ebx
mov byte [esi + eax], bl
xchg ebp, ebx
movzx ebp, word [esp + 0x32]
xchg ebp, ebx
mov byte [esi + eax + 1], bl
xchg ebp, ebx
nop
lea eax, [ebx + 2]
cmp edi, eax
jae 0x5022c5
mov dword [esp + 0x34], ebx
lea ecx, [0x6cd7a0]
mov dword [esp], ecx
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
call fcn.0044baf0
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
add eax, 2
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x34]
mov ebp, ecx
shr cx, 8
mov byte [esi + ebx], cl
xchg ebp, eax
mov byte [esi + ebx + 1], al
xchg ebp, eax
nop
lea ecx, [eax + ebp]
mov dword [esp + 0x34], ecx
cmp edi, ecx
jae 0x502316
mov dword [esp + 0x48], eax
lea edx, [0x6cd7a0]
mov dword [esp], edx
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ecx
call fcn.0044baf0
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x68]
mov ebp, dword [esp + 0x4c]
mov dword [esp + 0x38], edi
mov dword [esp + 0x5c], esi
add eax, esi
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
call fcn.00463d10
mov eax, dword [esp + 0x50]
inc eax
mov ecx, dword [esp + 0x54]
cmp ecx, eax
jg 0x5021e1
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x34]
jmp 0x50203b
call fcn.00461f40
jmp fcn.00501ee0