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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x18]
cmp eax, dword [ecx]
ja 0x510133
xor edi, edi
mov eax, 0x18
call fcn.0042a440
jmp fcn.00510110
sub esp, 0x98
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov ebx, dword [esp + 0x9c]
mov dword [esp], ebx
call fcn.0050fc50
mov edi, dword [esp + 4]
mov dword [esp + 0x5c], edi
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0xc]
mov dword [esp + 0x64], esi
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x3c], edx
cmp eax, 0
mov dword [esp + 0x38], eax
je 0x5101de
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], edx
add esp, 0x98
ret
mov dword [esp + 0x60], ecx
cmp ecx, 0
jne 0x510219
mov dword [esp + 0xa0], edi
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], esi
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
add esp, 0x98
ret
mov ebx, dword [esp + 0x9c]
mov eax, dword [ebx]
mov ebp, dword [eax + 0x18]
mov ebx, dword [eax + 0x14]
sub ebp, ebx
cmp ebp, 1
jle 0x510301
mov ebx, dword [esp + 0x9c]
mov ebp, dword [ebx]
mov dword [esp], ebp
mov dword [esp + 4], 1
call fcn.0042ce80
mov edi, dword [esp + 0x5c]
mov esi, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
mov ebp, dword [esp + 8]
mov dword [esp + 0x50], ebp
mov edx, dword [esp + 0xc]
mov dword [esp + 0x54], edx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x58], ebx
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x44], ebx
cmp eax, 0
mov dword [esp + 0x40], eax
jne 0x510301
cmp edx, 0
jbe 0x510664
movzx ebp, byte [ebp]
mov ebx, ebp
or ebx, 0x20
cmp bl, 0x61
jb 0x51065d
cmp bl, 0x7a
ja 0x51065d
mov eax, 1
cmp al, 0
je 0x510301
mov dword [esp], edi
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
call fcn.0050fef0
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
add esp, 0x98
ret
mov dword [esp], edi
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
call fcn.0050fef0
mov ecx, dword [esp + 0x9c]
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x8c], ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x90], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x94], ebx
mov eax, dword [ecx + 0x10]
cmp eax, 0
jb 0x510656
mov edi, dword [ecx + 8]
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], edi
mov esi, dword [esp + 0x84]
mov dword [esp + 0x88], eax
mov dword [esp + 0x78], esi
mov dword [esp + 0x30], esi
mov ebx, dword [esp + 0x90]
mov ebp, dword [esp + 0x30]
add ebp, ebx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x7c], eax
mov ebp, dword [esp + 0x30]
sub ebp, eax
cmp ebp, 0
jle 0x5103cb
mov dword [esp], 0x5c2a40
mov dword [esp + 0x74], edi
mov dword [esp + 4], edi
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov eax, ebp
cdq
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
call fcn.004276f0
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x78], ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x7c], ebx
mov eax, dword [esp + 0x90]
mov ebx, dword [esp + 0x84]
mov dword [esp + 0x74], edi
lea ebp, [edi + ebx]
mov dword [esp], ebp
mov ebx, dword [esp + 0x8c]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call fcn.0042c4a0
mov esi, dword [esp + 0x9c]
mov ecx, dword [esp + 0x84]
mov ebx, dword [esp + 0x90]
add ecx, ebx
mov eax, dword [esp + 0x7c]
mov ebp, dword [esp + 0x74]
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], eax
mov dword [esp], esi
call fcn.00510670
mov ebx, dword [esp + 4]
cmp ebx, 0
jle 0x510478
mov ebx, dword [esp + 0x9c]
mov dword [esp], ebx
call fcn.0050fc50
mov ebx, dword [esp + 4]
mov dword [esp + 0x68], ebx
mov ebx, dword [esp + 8]
mov dword [esp + 0x6c], ebx
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x70], ebx
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x4c], ebx
cmp eax, 0
mov dword [esp + 0x48], eax
je 0x5104c3
mov ebx, dword [esp + 0x9c]
cmp ebx, 0
je 0x5104bf
mov ebp, dword [ebx + 8]
mov dword [esp + 0xa0], ebp
mov ebp, dword [ebx + 0xc]
mov dword [esp + 0xa4], ebp
mov ebp, dword [ebx + 0x10]
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
add esp, 0x98
ret
mov dword [ebx], eax
jmp 0x510484
mov ebx, dword [esp + 0x9c]
cmp ebx, 0
je 0x51064f
mov esi, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
mov ebp, eax
sub ebp, ecx
cmp ebp, 1
jge 0x51053a
mov dword [esp], 0x5c2a40
mov dword [esp + 0x74], esi
mov dword [esp + 4], esi
mov dword [esp + 0x78], ecx
mov dword [esp + 8], ecx
mov dword [esp + 0x7c], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 0
call fcn.004276f0
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ebp, ecx
inc ebp
mov dword [esp + 0x78], ebp
lea ebp, [esi + ecx]
mov byte [ebp], 0x20
mov ecx, dword [esp + 0x78]
mov ebx, dword [esp + 0x9c]
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], eax
mov ebx, dword [esp + 0x9c]
cmp ebx, 0
je 0x510648
mov ecx, dword [ebx + 8]
mov ebp, dword [ebx + 0xc]
mov dword [esp + 0x90], ebp
mov esi, dword [ebx + 0x10]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x74], ecx
mov edi, dword [esp + 0x90]
mov dword [esp + 0x94], esi
mov dword [esp + 0x78], edi
mov ebx, dword [esp + 0x6c]
mov ebp, edi
add ebp, ebx
mov dword [esp + 0x7c], esi
sub ebp, esi
cmp ebp, 0
jle 0x5105eb
mov dword [esp], 0x5c2a40
mov ebx, dword [esp + 0x74]
mov dword [esp + 4], ebx
mov dword [esp + 8], edi
mov dword [esp + 0xc], esi
mov eax, ebp
cdq
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
call fcn.004276f0
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x74], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x78], ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x7c], ebx
mov ecx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x90]
mov ebp, dword [esp + 0x74]
lea ebp, [ebp + ebx]
mov dword [esp], ebp
mov ebx, dword [esp + 0x68]
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.0042c4a0
mov esi, dword [esp + 0x9c]
mov ecx, dword [esp + 0x90]
mov ebx, dword [esp + 0x6c]
add ecx, ebx
mov eax, dword [esp + 0x7c]
mov ebp, dword [esp + 0x74]
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], eax
jmp 0x51042b
mov dword [ebx], eax
jmp 0x51056c
mov dword [ebx], eax
jmp 0x5104d3
call fcn.004116f0
ud2
xor eax, eax
jmp 0x5102ae
call fcn.004116c0
ud2