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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 4]
cmp eax, dword [ecx + 8]
jbe 0x511a27
sub esp, 0x84
mov eax, dword [esp + 0x9c]
test eax, eax
jne 0x51194d
mov eax, dword [esp + 0x94]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x98]
mov dword [esp], edx
call ecx
movzx eax, byte [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x9c]
test ebx, ebx
jne 0x511937
test edx, edx
je 0x51181a
mov ebp, 0xa
mov esi, 0x2e
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x34], ebp
mov ebp, 0xa
mov dword [esp + 0x58], edx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x54], edi
mov dword [esp + 0x30], esi
mov byte [esp + 0x2f], al
mov dword [esp + 0x50], ebp
mov dword [esp], ebp
call fcn.00511240
mov eax, dword [esp + 4]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x9c]
mov ebx, dword [esp + 0x94]
mov ebp, dword [esp + 0x98]
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0x88]
mov dword [esp + 0x6c], eax
xor eax, eax
mov byte [esp + 0x2e], al
mov eax, dword [esp + 0x54]
mov dword [esp + 0x40], eax
mov dword [esp + 0x64], ecx
xor ecx, ecx
mov dword [esp + 0x3c], ecx
xor ecx, ecx
mov dword [esp + 0x8c], ecx
xor ecx, ecx
mov dword [esp + 0x44], ecx
mov ecx, 0xffffffff
mov dword [esp + 0x54], ecx
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x64]
jmp 0x51146b
mov dword [esp + 0x78], edi
mov dword [esp + 0x90], esi
mov byte [esp + 0x2e], al
mov byte [esp + 0xa0], cl
mov edx, dword [ebx + 0x10]
mov dword [esp], ebp
call edx
movzx eax, byte [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x94]
mov esi, dword [esp + 0x98]
mov edi, dword [esp + 0x54]
mov ebx, ebp
mov ebp, esi
mov dword [esp + 0x58], edx
mov byte [esp + 0x2f], al
mov byte [esp + 0x5c], al
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x40], eax
mov edi, dword [esp + 0x78]
mov esi, dword [esp + 0x90]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x74], edi
mov dword [esp + 0x90], esi
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x5115c1
movzx eax, byte [esp + 0x2f]
cmp al, 0x2e
jne 0x51180d
movzx ecx, byte [esp + 0xa0]
test cl, cl
je 0x5114cb
mov eax, dword [esp + 0x30]
cmp eax, 0x5f
sete al
movzx ecx, byte [esp + 0x2e]
or eax, ecx
xor ecx, ecx
mov ecx, 0x2e
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x54], ecx
xor ecx, ecx
jmp 0x5113f1
cmp al, 0x5f
jne 0x511500
test edx, edx
jne 0x511500
mov eax, dword [esp + 0x30]
cmp eax, 0x30
setne al
movzx edx, byte [esp + 0x2e]
or eax, edx
mov edx, 0x5f
mov edx, dword [esp + 0x40]
mov dword [esp + 0x4c], edx
mov edx, 0x5f
mov dword [esp + 0x30], edx
jmp 0x5113f1
cmp al, 0x30
jb 0x5117c1
cmp al, 0x39
ja 0x5117c1
add eax, 0xffffffd0
movzx eax, al
mov edx, dword [esp + 0x50]
cmp eax, edx
jae 0x5115b9
mov ebp, dword [esp + 0x44]
imul ebp, edx
add eax, ebp
mov ebp, dword [esp + 0x3c]
inc ebp
mov edx, dword [esp + 0x38]
cmp edx, ebp
je 0x51155e
mov edx, dword [esp + 0x40]
inc edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x44], eax
mov ebp, dword [esp + 0x98]
movzx eax, byte [esp + 0x2e]
mov edx, 0x30
jmp 0x5114f7
mov dword [esp], edi
mov ecx, dword [esp + 0x8c]
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
call fcn.005091d0
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
movzx ecx, byte [esp + 0xa0]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x94]
xor ebp, ebp
mov dword [esp + 0x8c], eax
xor eax, eax
jmp 0x51153a
mov eax, dword [ebx + 0x14]
mov dword [esp], ebp
call eax
mov eax, dword [esp + 0x58]
cmp dword [0xdc3060], eax
je 0x511788
mov ecx, dword [esp + 0x78]
test eax, eax
je 0x511755
mov edx, dword [esp + 0x40]
test edx, edx
jne 0x51174a
mov ebx, dword [esp + 0x34]
cmp ebx, 0x30
je 0x5116fb
mov eax, dword [0xdc30bc]
mov ecx, dword [0xdc30b8]
mov dword [esp + 0x78], eax
mov dword [esp + 0x58], ecx
mov ebx, dword [esp + 0x3c]
test ebx, ebx
jg 0x51169c
mov ebx, dword [esp + 0x90]
mov ebp, dword [esp + 0x8c]
mov esi, dword [esp + 0x74]
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
call fcn.005089d0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x54]
test ebx, ebx
jl 0x511696
mov ebp, dword [esp + 0x40]
sub ebx, ebp
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], ebx
mov eax, dword [esp + 0x58]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0xbc], eax
add esp, 0x84
ret
mov ebx, dword [esp + 0x40]
jmp 0x511652
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.00511290
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x74]
mov dword [esp], ecx
mov edx, dword [esp + 0x8c]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x90]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
call fcn.005091d0
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
jmp 0x511628
mov edx, dword [esp + 0x74]
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa8], 0
mov edx, dword [esp + 0x90]
mov dword [esp + 0xac], edx
mov dword [esp + 0xb0], 0xa
mov dword [esp + 0xb4], 1
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ecx
add esp, 0x84
ret
mov ebx, eax
mov eax, ecx
mov ecx, ebx
jmp 0x511602
movzx edx, byte [esp + 0x2e]
test dl, dl
je 0x51177c
mov edx, 1
test dl, dl
je 0x5115dd
mov ecx, dword [0xdc30b4]
mov eax, dword [0xdc30b0]
jmp 0x5115dd
mov ebx, dword [esp + 0x30]
cmp ebx, 0x5f
sete dl
jmp 0x511763
mov dword [esp], eax
mov ecx, dword [esp + 0x78]
mov dword [esp + 4], ecx
mov edx, dword [0xdc3064]
mov dword [esp + 8], edx
call fcn.00402f30
movzx eax, byte [esp + 0xc]
test al, al
je 0x5117b4
xor ecx, ecx
xor eax, eax
jmp 0x5115d5
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x58]
jmp 0x5115d5
cmp al, 0x61
jb 0x5117d6
cmp al, 0x7a
ja 0x5117d6
add eax, 0xffffffa9
movzx eax, al
jmp 0x511518
cmp al, 0x41
jb 0x511803
cmp al, 0x5a
ja 0x511803
mov edx, dword [esp + 0x50]
cmp edx, 0x24
jg 0x5117fb
add eax, 0xffffffc9
movzx eax, al
mov edx, dword [esp + 0x9c]
jmp 0x511518
add eax, 0xffffffe3
movzx eax, al
jmp 0x5117ef
mov eax, 0x3f
jmp 0x511518
movzx ecx, byte [esp + 0xa0]
jmp 0x5114cb
cmp al, 0x30
jne 0x511349
mov eax, dword [esp + 0x94]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x98]
mov dword [esp], edx
call ecx
movzx eax, byte [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
test edx, edx
je 0x51186f
mov ebx, 0xa
mov ebp, 1
xor esi, esi
mov edi, ebp
mov dword [esp + 0x34], esi
mov ebp, ebx
mov esi, 0x30
mov ebx, dword [esp + 0x9c]
jmp 0x511360
cmp al, 0x58
ja 0x511922
cmp al, 0x42
jne 0x5118d8
mov ebx, 0x62
mov ebp, 2
test ebx, ebx
je 0x5118d1
cmp ebx, 0x30
jne 0x51189c
xor esi, esi
mov edi, ebx
mov ebx, ebp
mov ebp, esi
mov esi, edi
jmp 0x511856
mov dword [esp + 0x34], ebx
mov dword [esp + 0x54], ebp
mov eax, dword [esp + 0x94]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x98]
mov dword [esp], edx
call ecx
movzx eax, byte [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x54]
jmp 0x511890
mov esi, 1
jmp 0x511892
cmp al, 0x4f
jne 0x5118e9
mov ebx, 0x6f
mov ebp, 8
jmp 0x511887
cmp al, 0x58
jne 0x5118fa
mov ebx, 0x78
mov ebp, 0x10
jmp 0x511887
movzx ebx, byte [esp + 0xa0]
test bl, bl
je 0x511916
xor ebp, ebp
mov esi, 0xa
mov ebx, ebp
mov ebp, esi
jmp 0x511887
mov ebp, 0x30
mov esi, 8
jmp 0x51190d
cmp al, 0x62
je 0x51187d
cmp al, 0x6f
je 0x5118dd
cmp al, 0x78
je 0x5118ee
jmp 0x5118fa
mov ebp, ebx
mov esi, 0x2e
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x34], ebp
mov ebp, ebx
jmp 0x511360
movzx ecx, byte [esp + 0xa0]
test cl, cl
je 0x511991
xor edx, edx
test dl, dl
jne 0x51130f
test cl, cl
je 0x51198d
cmp eax, 2
jne 0x51197b
mov edx, 1
test dl, dl
jne 0x51130f
jmp 0x51199e
cmp eax, 8
je 0x51196c
cmp eax, 0xa
je 0x51196c
cmp eax, 0x10
sete dl
jmp 0x511971
xor edx, edx
jmp 0x511971
cmp eax, 2
jl 0x511959
cmp eax, 0x3e
setle dl
jmp 0x51195b
mov dword [esp], eax
call fcn.004085d0
mov eax, dword [esp + 4]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
lea ecx, [0x8ead00]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
lea eax, [0x9905a2]
mov dword [esp], eax
mov dword [esp + 4], 0x16
lea eax, [esp + 0x7c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004c9200
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004086a0
mov eax, dword [esp + 8]
lea ecx, [0x8eba40]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0042cff0
nop
call fcn.004557a0
jmp fcn.005112e0