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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x516416
sub esp, 0x70
mov eax, dword [esp + 0x74]
mov ecx, dword [eax]
movzx ecx, byte [ecx + 0x44]
mov byte [esp + 0x2b], cl
xor edx, edx
jmp 0x515e81
inc edx
movzx ecx, byte [esp + 0x2b]
mov ebx, dword [esp + 0x78]
mov ebp, dword [ebx + 0x10]
mov esi, dword [ebx + 0xc]
cmp edx, ebp
jge 0x5163c7
jae 0x51640f
lea ebp, [esi + edx*8 + 4]
mov ebp, dword [ebp]
test ebp, ebp
je 0x515e7b
mov dword [esp + 0x2c], edx
mov dword [esp + 0x44], ebp
test cl, cl
je 0x515fae
movzx esi, byte [eax + 0x50]
xchg esi, eax
test al, al
xchg esi, eax
je 0x515fae
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 4]
test esi, esi
jle 0x515fae
mov esi, dword [eax + 0x58]
mov ebx, dword [eax + 0x54]
test esi, esi
jbe 0x516408
mov ebx, dword [ebx]
mov esi, dword [edi]
cmp ebx, esi
jge 0x515fae
mov ebx, dword [eax + 0x48]
mov esi, dword [eax + 0x44]
mov edi, dword [eax + 0x4c]
lea ecx, [eax + 0x44]
mov dword [esp + 0x6c], ecx
lea ecx, [ebx + 1]
cmp ecx, edi
jg 0x515f35
lea ecx, [ebx + 1]
mov dword [eax + 0x48], ecx
lea ecx, [esi + ebx*4]
mov edi, dword [0xa08230]
test edi, edi
jne 0x515f1c
mov dword [esi + ebx*4], ebp
jmp 0x515e7b
mov dword [esp], ecx
mov dword [esp + 4], ebp
call fcn.0040f250
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x2c]
jmp 0x515e7b
lea eax, [0x71f6e0]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ecx
call fcn.00439c80
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x74]
mov dword [ebx + 0x4c], edx
mov edx, dword [0xa08230]
test edx, edx
jne 0x515f88
mov dword [ebx + 0x44], eax
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x44]
mov ebx, ecx
mov esi, eax
mov eax, dword [esp + 0x74]
jmp 0x515f01
mov dword [esp + 0x68], eax
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040f250
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x74]
jmp 0x515f73
mov ebx, dword [ebp]
mov dword [esp + 0x48], ebx
movzx esi, byte [ebx]
xchg esi, eax
cmp al, 7
xchg esi, eax
ja 0x516356
xchg esi, eax
cmp al, 4
xchg esi, eax
jne 0x516316
mov esi, dword [ebp + 4]
mov edi, dword [ebp + 8]
test edi, edi
jle 0x516308
mov dword [esp + 0x64], esi
test cl, cl
je 0x5162ff
movzx ebx, byte [eax + 0x50]
test bl, bl
je 0x5162f6
mov ebx, dword [eax + 0x58]
mov esi, dword [eax + 0x54]
cmp ebx, 1
jbe 0x5163e7
mov ebx, dword [esi + 4]
mov esi, dword [esp + 0x80]
cmp ebx, esi
jl 0x5162a0
test cl, cl
je 0x516163
mov byte [eax + 0x50], 1
xor ebx, ebx
test bl, bl
jne 0x5160fb
test ebp, ebp
je 0x515e7b
mov ebx, dword [eax + 0x48]
mov edi, dword [eax + 0x44]
mov esi, dword [eax + 0x4c]
lea ecx, [eax + 0x44]
mov dword [esp + 0x60], ecx
lea ecx, [ebx + 1]
cmp ecx, esi
jg 0x51607e
lea ecx, [ebx + 1]
mov dword [eax + 0x48], ecx
mov ecx, dword [0xa08230]
lea esi, [edi + ebx*4]
test ecx, ecx
jne 0x516065
mov dword [edi + ebx*4], ebp
jmp 0x515e7b
mov dword [esp], esi
mov dword [esp + 4], ebp
call fcn.0040f250
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x2c]
jmp 0x515e7b
mov dword [esp + 0x44], ebp
lea eax, [0x71f6e0]
mov dword [esp], eax
mov dword [esp + 4], edi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ecx
call fcn.00439c80
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x74]
mov dword [ebx + 0x4c], edx
mov edx, dword [0xa08230]
test edx, edx
jne 0x5160d5
mov dword [ebx + 0x44], eax
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x44]
mov ebx, ecx
mov edi, eax
mov eax, dword [esp + 0x74]
jmp 0x51604a
mov dword [esp + 0x5c], eax
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040f250
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x74]
jmp 0x5160c0
mov ecx, dword [esp + 0x48]
mov ecx, dword [ecx + 4]
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 4]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebx
mov dword [esp], eax
mov edx, dword [esp + 0x7c]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0xc], ecx
movzx ebx, byte [esp + 0x8c]
mov byte [esp + 0x1c], bl
mov dword [esp + 0x20], ebp
call fcn.00516420
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x74]
movzx ecx, byte [esp + 0x2b]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x80]
jmp 0x51602b
mov ebx, dword [esp + 0x78]
mov edi, dword [ebx + 0x10]
mov esi, dword [ebx + 0x14]
mov ecx, dword [ebx + 0xc]
inc edx
cmp edx, edi
ja 0x5163d9
sub edi, edx
mov dword [esp + 0x38], edi
sub esi, edx
shl edx, 3
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and edx, esi
add ecx, edx
mov dword [esp + 0x58], ecx
xor edx, edx
jmp 0x5161aa
inc edx
mov ecx, dword [esp + 0x58]
mov ebx, dword [esp + 0x78]
mov ebp, dword [esp + 0x44]
mov edi, dword [esp + 0x38]
cmp edx, edi
jge 0x516284
lea esi, [ecx + edx*8]
mov esi, dword [esi + 4]
test esi, esi
je 0x516199
mov dword [esp + 0x34], edx
mov ebp, dword [eax + 0x44]
mov ebx, dword [eax + 0x48]
mov ecx, dword [eax + 0x4c]
lea edi, [eax + 0x44]
mov dword [esp + 0x54], edi
lea edi, [ebx + 1]
cmp edi, ecx
jg 0x516207
lea ecx, [ebx + 1]
mov dword [eax + 0x48], ecx
lea ecx, [ebp + ebx*4]
mov edi, dword [0xa08230]
test edi, edi
jne 0x5161f1
mov dword [ebp + ebx*4], esi
jmp 0x516199
mov dword [esp], ecx
mov dword [esp + 4], esi
call fcn.0040f250
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x34]
jmp 0x516199
mov dword [esp + 0x50], esi
lea eax, [0x71f6e0]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edi
call fcn.00439c80
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x74]
mov dword [ebx + 0x4c], edx
mov edx, dword [0xa08230]
test edx, edx
jne 0x51625e
mov dword [ebx + 0x44], eax
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x50]
mov ebx, ecx
mov ebp, eax
mov eax, dword [esp + 0x74]
jmp 0x5161d7
mov dword [esp + 0x4c], eax
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040f250
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x74]
jmp 0x516249
mov dword [ebx + 0x10], 0
movzx ecx, byte [esp + 0x2b]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x80]
jmp 0x51601d
cmp edi, 1
jbe 0x5163e0
mov ebx, dword [esp + 0x64]
mov dword [ebx + 4], esi
mov ebx, dword [eax + 0x58]
mov edi, dword [eax + 0x54]
mov esi, dword [ebp + 8]
mov ebp, dword [ebp + 4]
cmp ebx, esi
jle 0x5162f2
mov dword [esp], edi
mov dword [esp + 4], ebp
shl esi, 2
mov dword [esp + 8], esi
call fcn.0044e0c0
movzx ecx, byte [esp + 0x2b]
test cl, cl
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x80]
jmp 0x516017
mov esi, ebx
jmp 0x5162c0
mov esi, dword [esp + 0x80]
jmp 0x5162a0
mov esi, dword [esp + 0x80]
jmp 0x5162a0
test cl, cl
mov esi, dword [esp + 0x80]
jmp 0x516017
xchg esi, eax
cmp al, 7
xchg esi, eax
jne 0x5163ee
mov dword [esp], ebx
mov eax, dword [esp + 0x88]
mov dword [esp + 4], eax
call fcn.0050fda0
movzx ebx, byte [esp + 8]
mov eax, dword [esp + 0x74]
movzx ecx, byte [esp + 0x2b]
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x80]
jmp 0x516023
xchg esi, eax
cmp al, 8
xchg esi, eax
jne 0x516389
mov esi, dword [ebx + 0xc]
mov edi, dword [ebx + 0x10]
test edi, edi
jbe 0x5163d2
mov edi, dword [esi]
mov esi, edi
mov edi, dword [esp + 0x88]
cmp edi, esi
xchg edi, ebx
sete bl
xchg edi, ebx
mov esi, dword [esp + 0x80]
mov ebx, edi
jmp 0x516023
xchg esi, eax
cmp al, 9
xchg esi, eax
jne 0x5163a1
mov esi, dword [esp + 0x80]
mov ebx, 1
jmp 0x516023
xchg esi, eax
cmp al, 0xa
xchg esi, eax
jne 0x5163ee
mov edi, dword [esp + 0x88]
cmp edi, 0xa
xchg edi, ebx
setne bl
xchg edi, ebx
mov esi, dword [esp + 0x80]
mov ebx, edi
jmp 0x516023
mov dword [ebx + 0x10], 0
add esp, 0x70
ret
call fcn.00426960
ud2
call fcn.004269c0
ud2
call fcn.00426960
ud2
call fcn.00426960
ud2
lea eax, [0x744900]
mov dword [esp], eax
lea eax, [0x7ffac8]
mov dword [esp + 4], eax
call fcn.004277b0
ud2
call fcn.00426960
ud2
call fcn.00426960
ud2
call fcn.0044be50
jmp fcn.00515e50