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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5daf65
sub esp, 0x6c
mov ebx, dword [esp + 0x70]
mov ebp, dword [ebx + 0x1a4]
mov ecx, dword [ebx + 0x1a8]
mov esi, dword [ebx + 0x1ac]
mov eax, dword [ebx + 0x1b0]
mov edi, ecx
sub ecx, eax
cmp ecx, 4
jge 0x5da6c0
mov dword [esp], ebx
mov byte [esp + 4], 0
call fcn.005d69d0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
test eax, eax
je 0x5da659
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
add esp, 0x6c
ret
nop
cmp edi, eax
jb 0x5daf5d
sub esi, eax
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and eax, esi
movzx esi, byte [ebp + eax + 1]
shl esi, 0x10
movzx edi, byte [ebp + eax + 2]
shl edi, 8
or edi, esi
movzx ebp, byte [ebp + eax + 3]
or ebp, edi
mov dword [esp + 0x24], ebp
cmp ebp, 0x10000
jle 0x5da89d
mov dword [esp], ebx
mov byte [esp + 4], 0x50
call fcn.005d95b0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.00409530
mov eax, dword [esp + 4]
lea ecx, [0x6869e0]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
lea eax, [0x72531c]
mov dword [esp + 0x68], eax
lea eax, [0x6d40ee]
mov dword [esp], eax
mov dword [esp + 4], 0x45
lea eax, [esp + 0x5c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004c3100
mov eax, dword [esp + 0x14]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x40], ecx
lea edx, [0x697d00]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00409850
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x5da7f4
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x70]
mov dword [edx + 0xd0], ecx
mov ecx, dword [0x8d9190]
test ecx, ecx
jne 0x5da7e3
mov eax, dword [esp + 0x40]
mov dword [edx + 0xd4], eax
jmp 0x5da864
lea edi, [edx + 0xd4]
mov eax, dword [esp + 0x40]
call fcn.004643a0
jmp 0x5da864
mov dword [esp + 0x58], edx
mov dword [esp + 0x4c], ecx
lea eax, [0x690b80]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x58]
mov dword [eax], ecx
mov ecx, dword [0x8d9190]
test ecx, ecx
jne 0x5da827
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], ecx
jmp 0x5da837
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x4c]
call fcn.004643a0
mov eax, ecx
lea ecx, [0x72717c]
mov edx, dword [esp + 0x70]
mov dword [edx + 0xd0], ecx
mov ecx, dword [0x8d9190]
test ecx, ecx
jne 0x5da859
mov dword [edx + 0xd4], eax
jmp 0x5da864
lea edi, [edx + 0xd4]
call fcn.004643a0
mov eax, dword [edx + 0xd0]
mov ecx, dword [edx + 0xd4]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
add esp, 0x6c
ret
mov ebx, dword [esp + 0x70]
mov ebp, dword [esp + 0x24]
lea esi, [ebp + 4]
mov edi, dword [ebx + 0x1a8]
sub edi, dword [ebx + 0x1b0]
cmp edi, esi
jge 0x5da8f2
mov dword [esp], ebx
mov byte [esp + 4], 0
call fcn.005d69d0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
test eax, eax
je 0x5da895
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
add esp, 0x6c
ret
nop
mov byte [ebx + 0x1b4], 0
nop
mov edx, dword [ebx + 0x1ac]
mov ebp, dword [ebx + 0x1a4]
mov edi, dword [ebx + 0x1a8]
mov eax, dword [ebx + 0x1b0]
sub edi, eax
cmp edi, esi
jl 0x5da91b
mov edi, esi
lea ecx, [edi + eax]
cmp edx, ecx
jb 0x5daf58
cmp eax, ecx
ja 0x5daf53
mov dword [ebx + 0x1b0], ecx
sub edx, eax
neg edx
sar edx, 0x1f
and eax, edx
lea edx, [ebp + eax]
test edi, edi
jle 0x5da94c
mov byte [ebx + 0x1b4], 0xff
jbe 0x5daf4a
mov dword [esp + 0x20], edi
mov dword [esp + 0x50], edx
movzx eax, byte [ebp + eax]
cmp al, 0xb
ja 0x5daaa2
cmp al, 2
ja 0x5da9c9
test al, al
jne 0x5da982
lea ecx, [0x727d48]
lea eax, [0x8d8e54]
jmp 0x5dad37
cmp al, 1
jne 0x5da9a8
lea eax, [0x6b6640]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x20]
lea ecx, [0x727cd0]
jmp 0x5dad37
lea eax, [0x6b4b60]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x20]
lea ecx, [0x727dc0]
jmp 0x5dad37
cmp al, 5
ja 0x5daa30
cmp al, 4
jne 0x5daa16
cmp word [ebx + 0x24], 0x304
jne 0x5da9f5
lea eax, [0x6a8ae0]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
lea ecx, [0x727d90]
jmp 0x5daa0d
lea eax, [0x6971c0]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
lea ecx, [0x727d78]
mov edi, dword [esp + 0x20]
jmp 0x5dad37
cmp al, 5
jne 0x5dabe1
lea ecx, [0x727d18]
lea eax, [0x8d8e54]
jmp 0x5dad37
cmp al, 8
je 0x5daa81
cmp al, 0xb
jne 0x5dabe1
cmp word [ebx + 0x24], 0x304
jne 0x5daa60
lea eax, [0x6a1f40]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
lea ecx, [0x727c58]
jmp 0x5daa78
lea eax, [0x696f20]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
lea ecx, [0x727c40]
mov edi, dword [esp + 0x20]
jmp 0x5dad37
lea eax, [0x697040]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x20]
lea ecx, [0x727d00]
jmp 0x5dad37
cmp al, 0xf
ja 0x5dab7e
cmp al, 0xd
ja 0x5dab35
cmp al, 0xc
je 0x5dab14
cmp word [ebx + 0x24], 0x304
jne 0x5daae1
lea eax, [0x6a8a40]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
lea ecx, [0x727c88]
mov edx, eax
mov eax, dword [esp + 0x70]
jmp 0x5dab09
lea eax, [0x6a5f80]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 0x70]
cmp word [eax + 0x24], 0x303
setae cl
mov edx, dword [esp + 4]
mov byte [edx + 0xc], cl
lea ecx, [0x727c70]
mov edi, dword [esp + 0x20]
mov eax, edx
jmp 0x5dad37
lea eax, [0x6972e0]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x20]
lea ecx, [0x727dd8]
jmp 0x5dad37
cmp al, 0xe
jne 0x5dab4b
lea ecx, [0x727da8]
lea eax, [0x8d8e54]
jmp 0x5dad37
lea eax, [0x6a1fc0]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 0x70]
cmp word [eax + 0x24], 0x303
setae cl
mov edx, dword [esp + 4]
mov byte [edx + 0xc], cl
mov edi, dword [esp + 0x20]
lea ecx, [0x727cb8]
mov eax, edx
jmp 0x5dad37
cmp al, 0x14
ja 0x5dabcf
cmp al, 0x10
je 0x5dabae
cmp al, 0x14
jne 0x5dabe1
lea eax, [0x6970a0]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x20]
lea ecx, [0x727d30]
jmp 0x5dad37
lea eax, [0x696fe0]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x20]
lea ecx, [0x727ce8]
jmp 0x5dad37
cmp al, 0x16
je 0x5dad1b
cmp al, 0x18
je 0x5dacfd
mov dword [esp], ebx
mov byte [esp + 4], 0xa
call fcn.005d9780
mov eax, dword [esp + 8]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x3c], ecx
lea edx, [0x697d00]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00409850
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x5dac5c
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x70]
mov dword [edx + 0xd0], ecx
mov ecx, dword [0x8d9190]
test ecx, ecx
jne 0x5dac4b
mov eax, dword [esp + 0x3c]
mov dword [edx + 0xd4], eax
jmp 0x5daccc
lea edi, [edx + 0xd4]
mov eax, dword [esp + 0x3c]
call fcn.004643a0
jmp 0x5daccc
mov dword [esp + 0x58], edx
mov dword [esp + 0x48], ecx
lea eax, [0x690b80]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x58]
mov dword [eax], ecx
mov ecx, dword [0x8d9190]
test ecx, ecx
jne 0x5dac8f
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], ecx
jmp 0x5dac9f
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x48]
call fcn.004643a0
mov eax, ecx
lea ecx, [0x72717c]
mov edx, dword [esp + 0x70]
mov dword [edx + 0xd0], ecx
mov ecx, dword [0x8d9190]
test ecx, ecx
jne 0x5dacc1
mov dword [edx + 0xd4], eax
jmp 0x5daccc
lea edi, [edx + 0xd4]
call fcn.004643a0
mov eax, dword [edx + 0xd0]
mov ecx, dword [edx + 0xd4]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
add esp, 0x6c
ret
lea eax, [0x697160]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x20]
lea ecx, [0x727d60]
jmp 0x5dad37
lea eax, [0x696f80]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x20]
lea ecx, [0x727ca0]
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], ecx
mov dword [esp], 0
mov dword [esp + 4], edi
mov dword [esp + 8], 0
mov dword [esp + 0xc], edi
lea edx, [0x6873e0]
mov dword [esp + 0x10], edx
call fcn.0044af60
mov eax, dword [esp + 0x14]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x30], edx
mov dword [esp], eax
mov ebx, dword [esp + 0x50]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 8], ebx
call fcn.00464d30
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x34]
mov dword [esp], edx
mov ebx, dword [esp + 0x54]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x2c]
mov dword [esp + 8], ebp
mov esi, dword [esp + 0x30]
mov dword [esp + 0xc], esi
call ecx
movzx eax, byte [esp + 0x10]
test al, al
je 0x5dae2a
mov eax, dword [esp + 0x74]
test eax, eax
je 0x5dadf2
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0x78]
mov dword [esp], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xc], ecx
call eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x5dadff
mov ecx, dword [eax + 4]
jmp 0x5dae01
mov ecx, eax
mov dword [esp + 0x7c], ecx
mov eax, dword [esp + 0x34]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
add esp, 0x6c
ret
mov eax, dword [esp + 0x70]
mov dword [esp], eax
mov byte [esp + 4], 0xa
call fcn.005d9780
mov eax, dword [esp + 8]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x38], ecx
lea edx, [0x697d00]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00409850
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x5daea9
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x70]
mov dword [edx + 0xd0], ecx
mov ecx, dword [0x8d9190]
test ecx, ecx
jne 0x5dae98
mov eax, dword [esp + 0x38]
mov dword [edx + 0xd4], eax
jmp 0x5daf19
lea edi, [edx + 0xd4]
mov eax, dword [esp + 0x38]
call fcn.004643a0
jmp 0x5daf19
mov dword [esp + 0x44], ecx
mov dword [esp + 0x58], edx
lea eax, [0x690b80]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x58]
mov dword [eax], ecx
mov ecx, dword [0x8d9190]
test ecx, ecx
jne 0x5daedc
mov ecx, dword [esp + 0x44]
mov dword [eax + 4], ecx
jmp 0x5daeec
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x44]
call fcn.004643a0
mov eax, ecx
lea ecx, [0x72717c]
mov edx, dword [esp + 0x70]
mov dword [edx + 0xd0], ecx
mov ecx, dword [0x8d9190]
test ecx, ecx
jne 0x5daf0e
mov dword [edx + 0xd4], eax
jmp 0x5daf19
lea edi, [edx + 0xd4]
call fcn.004643a0
mov eax, dword [edx + 0xd0]
mov ecx, dword [edx + 0xd4]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
add esp, 0x6c
ret
xor eax, eax
mov ecx, eax
call fcn.00464420
call fcn.00464480
call fcn.00464460
mov ecx, edi
call fcn.00464480
nop
call fcn.00462f90
jmp fcn.005da640