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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5a4015
sub esp, 0x74
mov ecx, dword [esp + 0x80]
cmp ecx, 1
jb 0x5a400e
lea edx, [ecx - 1]
mov dword [esp + 0x38], edx
mov ebx, edx
neg edx
sar edx, 0x1f
and edx, 1
mov dword [esp + 0x50], edx
mov ebp, dword [esp + 0x7c]
lea esi, [ebp + edx]
mov dword [esp + 0x5c], esi
mov eax, ebx
mov ebx, dword [esp + 0x78]
mov edi, dword [ebx + 0x10]
test edi, edi
je 0x5a3fdd
mov dword [esp + 0x68], edi
mov esi, dword [0x7fe8b0]
mov edx, dword [edi + 0x10]
test esi, esi
jne 0x5a3faa
mov dword [ebx + 0x10], edx
mov edx, eax
xor eax, eax
call fcn.0044b8b1
mov eax, dword [esp + 0x68]
mov byte [eax], 4
movzx ecx, word [ebx]
mov word [eax + 2], cx
lea ecx, [eax + 0x20]
test byte [ecx], al
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 2
mov esi, dword [0x7fe8b0]
lea edi, [eax + 0x14]
test esi, esi
jne 0x5a3f90
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x80]
cmp ecx, 1
je 0x5a3f80
mov esi, dword [esp + 0x50]
movzx esi, byte [ebp + esi]
xchg esi, eax
cmp al, 0x5e
xchg esi, eax
jne 0x5a3f70
lea edx, [ecx - 2]
mov esi, edx
neg edx
sar edx, 0x1f
and edx, 1
mov ecx, dword [esp + 0x5c]
add ecx, edx
movzx edx, word [ebx]
test dx, 4
jne 0x5a391d
mov edx, dword [eax + 0x14]
mov dword [eax + 0x18], 2
xor ebp, ebp
mov dword [edx + ebp*4], 0xa
mov dword [edx + ebp*4 + 4], 0xa
mov edx, 0xffffffff
mov dword [esp + 0x64], eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x3c], edx
mov ebp, dword [eax + 0x1c]
mov edx, dword [eax + 0x18]
mov ebx, dword [eax + 0x14]
mov dword [esp + 0x54], eax
mov eax, 1
mov byte [esp + 0x37], al
mov eax, dword [esp + 0x54]
jmp 0x5a3966
mov eax, dword [esp + 0x78]
mov eax, dword [esp + 0x64]
mov ecx, ebx
xor ebx, ebx
mov byte [esp + 0x37], bl
mov ebx, esi
mov esi, edx
mov edx, ebp
mov ebp, edi
mov edi, dword [esp + 0x70]
mov dword [esp + 0x4c], ebp
test esi, esi
jne 0x5a3e68
mov dword [esp + 0x40], esi
mov dword [esp + 0x60], ecx
je 0x5a3e5f
movzx edi, byte [ecx]
xchg edi, eax
cmp al, 0x2d
xchg edi, eax
jne 0x5a3e56
mov edi, dword [esp + 0x78]
movzx eax, word [edi]
test ax, 0x40
jne 0x5a39a8
movzx eax, byte [esp + 0x37]
test al, al
je 0x5a3d78
mov dword [esp + 0x48], edx
mov dword [esp + 0x6c], ebx
cmp esi, 2
jle 0x5a39ca
movzx eax, byte [ecx]
cmp al, 0x5b
jne 0x5a39ca
movzx eax, byte [ecx + 1]
cmp al, 0x3a
je 0x5a3ce6
mov dword [esp], edi
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebp
call fcn.005a3080
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
test ecx, ecx
jne 0x5a3cbe
test esi, esi
jne 0x5a394a
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x40]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0xc], ebx
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x10], ebp
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x14], esi
call fcn.005a2ae0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
test eax, eax
je 0x5a3a69
mov edi, ebp
mov esi, eax
mov ebp, ecx
jmp 0x5a394a
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x40]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0xc], ebx
mov ebp, dword [esp + 0x80]
mov dword [esp + 0x10], ebp
call fcn.005a2990
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x24]
test edx, edx
jne 0x5a3c96
cmp ecx, 2
jl 0x5a3ace
movzx edx, byte [eax]
cmp dl, 0x2d
jne 0x5a3ace
movzx edx, byte [eax + 1]
cmp dl, 0x5d
jne 0x5a3b5c
mov edx, ebx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x5c], eax
mov ebp, dword [esp + 0x78]
movzx esi, word [ebp]
test si, 1
jne 0x5a3b2a
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
call fcn.005a41f0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x5c]
mov edi, eax
mov esi, edx
mov ebp, ecx
mov edx, dword [esp + 0x38]
jmp 0x5a394a
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
call fcn.005a4310
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
jmp 0x5a3b17
mov dword [esp + 0x44], ebx
mov edx, dword [esp + 0x78]
mov dword [esp], edx
inc eax
mov dword [esp + 4], eax
lea eax, [ecx - 1]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x10], ecx
call fcn.005a2990
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
test ecx, ecx
jne 0x5a3c6e
mov eax, dword [esp + 0x44]
cmp edx, eax
jl 0x5a3bbe
mov ecx, ebx
mov eax, ebp
mov ebx, edx
mov edx, dword [esp + 0x44]
jmp 0x5a3ad0
mov eax, dword [esp + 0x40]
mov ecx, eax
sub eax, ebx
test eax, eax
jl 0x5a4000
cmp eax, ecx
ja 0x5a4000
mov dword [esp + 0x40], eax
lea eax, [0x606e20]
mov dword [esp], eax
call fcn.00409a30
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x1d
mov eax, dword [0x7fe8b0]
test eax, eax
jne 0x5a3c61
lea ecx, [0x63aa52]
mov dword [edi], ecx
mov ecx, dword [esp + 0x40]
mov dword [edi + 0xc], ecx
mov ecx, dword [0x7fe8b0]
test ecx, ecx
jne 0x5a3c4b
mov eax, dword [esp + 0x60]
mov dword [edi + 8], eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
lea eax, [0x676d00]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], edi
add esp, 0x74
ret
lea ecx, [edi + 8]
mov eax, edi
mov edi, ecx
mov edx, eax
mov eax, dword [esp + 0x60]
call fcn.0044b7c0
mov edi, edx
jmp 0x5a3c1d
lea eax, [0x63aa52]
call fcn.0044b7c0
jmp 0x5a3c05
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], eax
add esp, 0x74
ret
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], ebp
add esp, 0x74
ret
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], eax
add esp, 0x74
ret
mov dword [esp], edi
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebp
call fcn.005a2c30
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
test ecx, ecx
jne 0x5a3d50
test edi, edi
je 0x5a3d33
mov eax, edi
mov edi, ebp
mov ebp, esi
mov esi, eax
jmp 0x5a394a
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x4c]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x78]
jmp 0x5a39ca
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], eax
add esp, 0x74
ret
cmp esi, 1
je 0x5a3d8a
movzx eax, byte [ecx + 1]
cmp al, 0x5d
je 0x5a39a8
lea eax, [esi - 1]
mov edx, eax
neg eax
sar eax, 0x1f
and eax, 1
add eax, ecx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0044ee10
mov eax, dword [esp + 0xc]
inc eax
test eax, eax
jl 0x5a4007
mov ecx, dword [esp + 0x40]
cmp eax, ecx
ja 0x5a4007
mov dword [esp + 0x50], eax
lea eax, [0x606e20]
mov dword [esp], eax
call fcn.00409a30
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x1d
mov eax, dword [0x7fe8b0]
test eax, eax
jne 0x5a3e49
lea ecx, [0x63aa52]
mov dword [edi], ecx
mov ecx, dword [esp + 0x50]
mov dword [edi + 0xc], ecx
mov ecx, dword [0x7fe8b0]
test ecx, ecx
jne 0x5a3e33
mov eax, dword [esp + 0x60]
mov dword [edi + 8], eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
lea eax, [0x676d00]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], edi
add esp, 0x74
ret
lea ecx, [edi + 8]
mov eax, edi
mov edi, ecx
mov edx, eax
mov eax, dword [esp + 0x60]
call fcn.0044b7c0
mov edi, edx
jmp 0x5a3e05
lea eax, [0x63aa52]
call fcn.0044b7c0
jmp 0x5a3ded
mov edi, dword [esp + 0x78]
jmp 0x5a39a8
mov edi, dword [esp + 0x78]
jmp 0x5a39a8
movzx ebp, byte [ecx]
xchg ebp, eax
cmp al, 0x5d
xchg ebp, eax
je 0x5a3e7d
test esi, esi
mov ebp, dword [esp + 0x4c]
jmp 0x5a3972
movzx ebp, byte [esp + 0x37]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x5a3e93
test esi, esi
mov ebp, dword [esp + 0x4c]
jmp 0x5a3972
mov dword [eax + 0x18], edx
mov edx, dword [esp + 0x4c]
mov dword [eax + 0x1c], edx
lea edx, [esi - 1]
mov dword [esp + 0x38], edx
neg edx
sar edx, 0x1f
and edx, 1
add ecx, edx
mov dword [esp + 0x5c], ecx
mov edx, dword [0x7fe8b0]
test edx, edx
jne 0x5a3f64
mov dword [eax + 0x14], ebx
mov dword [esp], edi
call fcn.005a4020
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebx, dword [esp + 0x3c]
test ebx, ebx
jl 0x5a3f43
mov ebx, dword [esp + 0x64]
mov dword [ebx + 0x18], ecx
mov dword [ebx + 0x1c], eax
mov ecx, dword [0x7fe8b0]
test ecx, ecx
jne 0x5a3f36
mov dword [ebx + 0x14], edx
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.0059d240
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
add esp, 0x74
ret
mov edi, dword [esp + 0x70]
mov eax, edx
call fcn.0044b7c0
jmp 0x5a3ef6
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.005a4c20
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
jmp 0x5a3edf
mov eax, ebx
call fcn.0044b7c0
jmp 0x5a3ec3
mov esi, edx
mov ecx, dword [esp + 0x5c]
mov edx, 1
jmp 0x5a3922
mov esi, edx
mov ecx, dword [esp + 0x5c]
mov edx, 1
jmp 0x5a3922
mov esi, eax
mov eax, ecx
call fcn.0044b7c0
mov ecx, dword [esp + 0x80]
cmp ecx, 1
mov eax, esi
jmp 0x5a38cb
lea ecx, [ebx + 0x10]
mov eax, edi
mov edi, ecx
mov ebp, eax
mov eax, edx
call fcn.0044b7c0
lea ecx, [0x61fb80]
mov dword [esp], ecx
mov dword [esp + 4], ebp
call fcn.0040f0e0
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x78]
mov ebp, dword [esp + 0x7c]
jmp 0x5a388c
lea eax, [0x61fb80]
mov dword [esp], eax
call fcn.00409a30
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x78]
mov ebp, dword [esp + 0x7c]
jmp 0x5a3890
call fcn.00425a10
ud2
call fcn.00425a10
ud2
call fcn.00425a10
ud2
call fcn.0044a060
jmp fcn.005a3810