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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5d1b58
sub esp, 0x48
lea edi, [esp + 0x58]
xor eax, eax
call fcn.004630e9
lea edi, [esp + 0x2c]
call fcn.004630e9
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + 0x2ac]
add edx, 0xfffffffc
mov ebx, dword [esp + 0x50]
cmp ebx, edx
jbe 0x5d164a
mov edx, dword [0x1108558]
mov ebp, dword [0x110855c]
xor ebx, ebx
mov esi, ebp
mov ebp, edx
mov edx, dword [esp + 0x50]
jmp 0x5d1688
mov edx, dword [ecx + 0x28c]
mov ebp, dword [ecx + 0x288]
mov esi, ebp
mov ebp, dword [ecx + 0x290]
cmp ebx, edx
ja 0x5d1b4e
sub edx, ebx
sub ebp, ebx
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, ebx
cmp edx, 3
jbe 0x5d1b42
mov edx, ebx
mov ebx, dword [ebp + esi]
xor ebp, ebp
xor esi, esi
mov dword [esp + 0x2c], ebx
test ebp, ebp
jne 0x5d1ab4
lea ebp, [edx + 4]
mov esi, ebx
mov ebx, dword [ecx + 0x2ac]
add ebx, 0xfffffffe
cmp ebx, ebp
jae 0x5d16b8
mov ebx, dword [0x1108558]
mov ebp, dword [0x110855c]
mov edi, edx
xor edx, edx
jmp 0x5d16ff
mov ebx, dword [ecx + 0x28c]
mov edi, edx
mov edx, dword [ecx + 0x288]
mov dword [esp + 0x28], edx
mov edx, dword [ecx + 0x290]
cmp ebx, ebp
jb 0x5d1b39
sub edx, edi
sub ebx, edi
add edx, 0xfffffffc
neg edx
sar edx, 0x1f
and ebp, edx
lea edx, [ebx - 4]
cmp edx, 1
jbe 0x5d1b2d
mov edx, dword [esp + 0x28]
movzx edx, word [ebp + edx]
xor ebx, ebx
xor ebp, ebp
mov word [esp + 0x30], dx
test ebx, ebx
jne 0x5d1a96
mov word [esp + 0x1e], dx
lea ebx, [edi + 6]
mov ebp, dword [ecx + 0x2ac]
add ebp, 0xfffffffe
cmp ebp, ebx
jae 0x5d1738
mov ebx, dword [0x1108558]
mov ebp, dword [0x110855c]
xor eax, eax
mov word [esp + 0x1c], ax
xor eax, eax
jmp 0x5d1786
mov ebp, dword [ecx + 0x28c]
mov edx, dword [ecx + 0x288]
mov dword [esp + 0x28], edx
mov edx, dword [ecx + 0x290]
cmp ebp, ebx
jb 0x5d1b24
sub ebp, edi
sub edx, edi
add edx, 0xfffffffa
neg edx
sar edx, 0x1f
and ebx, edx
lea edx, [ebp - 6]
cmp edx, 1
jbe 0x5d1b18
mov edx, dword [esp + 0x28]
movzx edx, word [ebx + edx]
mov word [esp + 0x1c], dx
xor ebx, ebx
xor ebp, ebp
movzx edx, word [esp + 0x1e]
mov dword [esp + 0x24], ebp
movzx ebp, word [esp + 0x1c]
mov word [esp + 0x32], bp
test ebx, ebx
jne 0x5d1a6f
lea ebx, [edi + 8]
mov ebp, dword [ecx + 0x2ac]
add ebp, 0xfffffffc
cmp ebp, ebx
jae 0x5d17c2
mov ebx, dword [0x1108558]
mov ebp, dword [0x110855c]
xor eax, eax
mov dword [esp + 0x20], eax
xor eax, eax
jmp 0x5d180e
mov ebp, dword [ecx + 0x28c]
mov edx, dword [ecx + 0x288]
mov dword [esp + 0x28], edx
mov edx, dword [ecx + 0x290]
cmp ebp, ebx
jb 0x5d1b0f
sub edx, edi
sub ebp, edi
add edx, 0xfffffff8
neg edx
sar edx, 0x1f
and ebx, edx
lea edx, [ebp - 8]
cmp edx, 3
jbe 0x5d1b03
mov edx, dword [esp + 0x28]
mov edx, dword [ebx + edx]
xor ebx, ebx
mov dword [esp + 0x20], edx
xor ebp, ebp
movzx edx, word [esp + 0x1e]
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x34], ebp
test ebx, ebx
jne 0x5d1a3f
lea eax, [edi + 0xc]
mov edx, dword [ecx + 0x2ac]
add edx, 0xfffffffc
cmp edx, eax
jae 0x5d1842
mov eax, dword [0x1108558]
mov edx, dword [0x110855c]
xor ebx, ebx
jmp 0x5d1881
mov edx, dword [ecx + 0x28c]
mov ebx, dword [ecx + 0x288]
mov ebp, dword [ecx + 0x290]
cmp edx, eax
jb 0x5d1afc
sub ebp, edi
sub edx, edi
add ebp, 0xfffffff4
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and eax, ebp
add edx, 0xfffffff4
cmp edx, 3
jbe 0x5d1af0
mov ebx, dword [eax + ebx]
xor eax, eax
xor edx, edx
mov dword [esp + 0x38], ebx
test eax, eax
jne 0x5d1a26
mov dword [esp], ecx
lea eax, [edi + 0x10]
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call fcn.005e0700
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
test edx, edx
jne 0x5d1a0d
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x50]
mov eax, ebx
add ebx, ebp
mov ecx, ebx
lea ebx, [ebp + eax + 0x10]
mov edx, ebp
lea ebp, [ebp + eax + 0x11]
mov esi, ebx
mov ebx, dword [esp + 0x4c]
cmp dword [ebx + 0x2ac], ebp
jae 0x5d18fc
mov ebp, dword [0x1108558]
mov esi, ebx
mov ebx, dword [0x110855c]
xor edi, edi
jmp 0x5d193e
mov edi, ebp
mov ebp, dword [ebx + 0x290]
mov ebx, dword [ebx + 0x288]
cmp ebp, edi
jb 0x5d1ae7
cmp edi, esi
jb 0x5d1ade
sub ebp, ecx
mov edi, edx
lea edx, [ebp - 0x10]
neg edx
sar edx, 0x1f
and esi, edx
movzx edx, byte [ebx + esi]
mov esi, dword [esp + 0x4c]
xor ebp, ebp
xor ebx, ebx
mov esi, edx
mov edx, edi
mov edi, esi
mov esi, dword [esp + 0x4c]
xchg edi, eax
mov byte [esp + 0x44], al
xchg edi, eax
test ebp, ebp
jne 0x5d19f4
lea eax, [edx + eax + 0x12]
mov edx, dword [esi + 0x2ac]
add edx, 0xfffffffe
cmp eax, edx
jbe 0x5d196d
mov eax, dword [0x1108558]
mov ecx, dword [0x110855c]
xor edx, edx
jmp 0x5d19ad
mov edx, dword [esi + 0x28c]
mov ebx, dword [esi + 0x288]
mov ebp, dword [esi + 0x290]
cmp edx, eax
jb 0x5d1ad7
sub ebp, ecx
sub edx, ecx
add ebp, 0xffffffee
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and eax, ebp
lea ecx, [edx - 0x12]
cmp ecx, 1
jbe 0x5d1acd
movzx edx, word [eax + ebx]
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov word [esp + 0x46], dx
test eax, eax
je 0x5d19d7
lea edi, [esp + 0x58]
lea esi, [esp + 0x2c]
call fcn.004635ba
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x78], eax
add esp, 0x48
ret
lea edi, [esp + 0x58]
lea esi, [esp + 0x2c]
call fcn.004635ba
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x78], eax
add esp, 0x48
ret
lea edi, [esp + 0x58]
lea esi, [esp + 0x2c]
call fcn.004635ba
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebx
add esp, 0x48
ret
lea edi, [esp + 0x58]
lea esi, [esp + 0x2c]
call fcn.004635ba
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebp
add esp, 0x48
ret
lea edi, [esp + 0x58]
lea esi, [esp + 0x2c]
call fcn.004635ba
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edx
add esp, 0x48
ret
lea edi, [esp + 0x58]
call fcn.004630e9
mov dword [esp + 0x58], esi
mov word [esp + 0x5c], dx
movzx ecx, word [esp + 0x1c]
mov word [esp + 0x5e], cx
mov dword [esp + 0x60], ebp
mov dword [esp + 0x74], ebx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x78], ecx
add esp, 0x48
ret
lea edi, [esp + 0x58]
call fcn.004630e9
mov dword [esp + 0x58], esi
mov word [esp + 0x5c], dx
mov word [esp + 0x5e], bp
mov dword [esp + 0x74], ebx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x78], ecx
add esp, 0x48
ret
lea edi, [esp + 0x58]
call fcn.004630e9
mov dword [esp + 0x58], esi
mov word [esp + 0x5c], dx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebp
add esp, 0x48
ret
lea edi, [esp + 0x58]
call fcn.004630e9
mov dword [esp + 0x58], ebx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], esi
add esp, 0x48
ret
mov eax, 1
call fcn.00462ef0
mov ecx, edx
call fcn.00462f60
mov eax, esi
mov ecx, edi
call fcn.00462f60
mov ecx, edi
mov edx, ebp
call fcn.00462f40
mov eax, 3
mov ecx, edx
call fcn.00462ef0
mov ecx, edx
call fcn.00462f60
mov eax, 3
mov ecx, edx
call fcn.00462ef0
mov eax, ebx
mov ecx, ebp
call fcn.00462f60
mov eax, 1
mov ecx, edx
call fcn.00462ef0
mov eax, ebx
mov ecx, ebp
call fcn.00462f60
mov eax, 1
mov ecx, edx
call fcn.00462ef0
mov eax, ebp
mov ecx, ebx
call fcn.00462f60
mov eax, 3
mov ecx, edx
call fcn.00462ef0
mov eax, ebx
mov ecx, edx
call fcn.00462f60
nop
call fcn.00461a60
jmp fcn.005d15f0