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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x579f91
sub esp, 0x7c
mov ecx, dword [esp + 0x84]
cmp ecx, 4
jb 0x579f86
mov eax, dword [esp + 0x88]
lea edx, [eax - 4]
mov ebx, edx
neg edx
sar edx, 0x1f
and edx, 4
mov dword [esp + 0x50], edx
mov ebp, dword [esp + 0x80]
lea esi, [edx + ebp]
mov edi, dword [esp + 0x8c]
mov eax, dword [edi + 8]
test eax, eax
jne 0x579f28
mov dword [esp + 0x54], eax
xor eax, eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x68], esi
add ecx, 0xfffffffc
mov dword [esp + 0x48], ecx
mov edx, dword [esp + 0x2c]
test edx, edx
jge 0x579d9a
mov byte [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
nop
lea eax, [esp + 0x6c]
cmp edi, eax
je 0x579aef
mov edx, dword [edi + 8]
mov dword [esp + 0x1c], edx
mov ebx, dword [edi + 4]
test edx, edx
jg 0x579cde
xor eax, eax
mov dword [esp + 0x5c], eax
xor eax, eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x6c]
mov esi, dword [esp + 0x1c]
cmp esi, edx
jge 0x579cd7
mov dword [esp + 0x20], edx
mov ebp, dword [esp + 0x5c]
cmp ebx, ebp
je 0x579ac9
mov dword [esp], ebp
mov dword [esp + 4], ebx
shl esi, 2
mov dword [esp + 8], esi
call fcn.0045eba0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x8c]
movzx eax, byte [eax]
mov byte [esp + 0x6c], al
mov eax, dword [esp + 0x74]
test eax, eax
jle 0x579cd0
movzx eax, byte [esp + 0x6c]
xor eax, 1
mov byte [esp + 0x6c], al
mov eax, dword [0x700990]
lea ecx, [esp + 0x6c]
mov dword [esp], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004d9a40
nop
mov eax, dword [esp + 0x74]
lea ecx, [0x5a5da0]
mov dword [esp], ecx
shl eax, 2
mov dword [esp + 0x40], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.004451f0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x78]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
call fcn.004e6120
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
cmp ecx, eax
jb 0x579f81
sub ecx, eax
mov edx, ecx
neg ecx
sar ecx, 0x1f
and eax, ecx
mov ebx, dword [esp + 0x64]
lea ebp, [ebx + eax]
xor ecx, ecx
jmp 0x579ba7
movzx esi, byte [ecx + ebp]
xor esi, 0xffffffff
xchg esi, eax
mov byte [ebp + ecx], al
xchg esi, eax
inc ecx
cmp edx, ecx
jle 0x579bb2
ja 0x579b99
jmp 0x579f78
test edx, edx
jne 0x579ca9
mov ecx, dword [esp + 0x48]
test ecx, ecx
jbe 0x579f71
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x80]
mov byte [edi + ebx], 0xff
mov ebx, dword [esp + 0x88]
add ebx, 0xfffffffb
mov eax, ebx
neg ebx
sar ebx, 0x1f
and ebx, 1
mov ecx, edi
mov edi, dword [esp + 0x68]
lea esi, [edi + ebx]
mov ebx, dword [esp + 0x84]
add ebx, 0xfffffffb
mov edi, 1
cmp edx, ebx
jge 0x579ca2
mov dword [esp + 0x44], ebx
mov dword [esp + 0x68], esi
mov dword [esp + 0x88], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edx
cmp ebp, esi
je 0x579c34
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
call fcn.0045eba0
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x34]
cmp ecx, eax
jb 0x579f6c
mov edx, dword [esp + 0x88]
sub edx, eax
sub ecx, eax
mov ebx, edx
neg edx
sar edx, 0x1f
and edx, eax
mov ebp, dword [esp + 0x68]
add edx, ebp
mov ebp, dword [esp + 0x38]
add eax, ebp
mov ebp, eax
sar eax, 0x18
mov esi, dword [esp + 0x80]
mov byte [esi], al
mov eax, ebp
sar ebp, 0x10
xchg ebp, eax
mov byte [esi + 1], al
xchg ebp, eax
mov ebp, eax
sar eax, 8
mov byte [esi + 2], al
xchg ebp, eax
mov byte [esi + 3], al
xchg ebp, eax
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], ebx
add esp, 0x7c
ret
mov edx, ebx
jmp 0x579c09
movzx ebx, byte [ebx + eax]
test bl, 0x80
je 0x579bba
mov ecx, dword [esp + 0x80]
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0x68]
mov eax, dword [esp + 0x4c]
xor edi, edi
jmp 0x579c01
xor eax, eax
jmp 0x579b03
mov esi, edx
jmp 0x579aaa
mov dword [esp + 0x60], ebx
cmp edx, 1
jne 0x579d42
lea eax, [0x5a56a0]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.004451f0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x60]
mov ebp, dword [esp + 0x80]
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x8c]
mov edx, 1
mov dword [esp + 0x5c], eax
mov ecx, 1
mov dword [esp + 0x28], ecx
lea eax, [esp + 0x6c]
mov ecx, dword [esp + 0x48]
jmp 0x579a9e
lea eax, [0x5a56a0]
mov dword [esp], eax
mov dword [esp + 4], edx
lea eax, [edx + 4]
mov dword [esp + 0x24], eax
mov dword [esp + 8], eax
call fcn.004451f0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x60]
mov ebp, dword [esp + 0x80]
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x8c]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], ecx
lea eax, [esp + 0x6c]
mov ecx, dword [esp + 0x48]
jmp 0x579a9e
test eax, eax
jne 0x579f0d
xor edx, edx
test edx, edx
jne 0x579db1
xor eax, eax
mov edx, esi
jmp 0x579c64
nop
lea ecx, [0x5a5da0]
mov dword [esp], ecx
shl eax, 2
mov dword [esp + 0x3c], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.004451f0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x8c]
mov edx, dword [ecx + 4]
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
call fcn.004e6120
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
cmp ecx, eax
jb 0x579f67
sub ecx, eax
mov edx, ecx
neg ecx
sar ecx, 0x1f
and eax, ecx
mov ebx, dword [esp + 0x64]
lea ebp, [ebx + eax]
test edx, edx
jle 0x579ef3
movzx ebx, byte [ebx + eax]
test bl, 0x80
je 0x579ef3
mov ecx, dword [esp + 0x48]
test ecx, ecx
jbe 0x579f60
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x80]
mov byte [edi + ebx], 0
mov ebx, dword [esp + 0x88]
add ebx, 0xfffffffb
mov eax, ebx
neg ebx
sar ebx, 0x1f
and ebx, 1
mov ecx, edi
mov edi, dword [esp + 0x68]
lea esi, [edi + ebx]
mov ebx, dword [esp + 0x84]
add ebx, 0xfffffffb
mov edi, 1
cmp ebx, edx
jle 0x579eef
mov dword [esp + 0x44], ebx
mov dword [esp + 0x68], esi
mov dword [esp + 0x88], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x30], edx
cmp esi, ebp
je 0x579eb0
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
call fcn.0045eba0
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x30]
cmp ecx, eax
jb 0x579f5b
mov ebx, dword [esp + 0x88]
sub ebx, eax
sub ecx, eax
mov edx, ebx
neg ebx
sar ebx, 0x1f
and ebx, eax
mov edi, dword [esp + 0x68]
lea esi, [edi + ebx]
mov edi, dword [esp + 0x38]
add eax, edi
mov ebp, dword [esp + 0x80]
mov ebx, edx
jmp 0x579daa
mov edx, ebx
jmp 0x579e85
mov ecx, dword [esp + 0x80]
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0x68]
mov eax, dword [esp + 0x4c]
xor edi, edi
jmp 0x579e81
movzx edx, byte [edi]
test dl, dl
je 0x579f1e
mov edx, 0xffffffff
jmp 0x579da4
mov edx, 1
jmp 0x579da4
movzx edx, byte [edi]
test dl, dl
je 0x579f45
mov edx, dword [esp + 0x50]
mov edx, 0xffffffff
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x50]
jmp 0x579a3b
mov edx, dword [esp + 0x50]
mov edx, 1
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x50]
jmp 0x579a3b
call fcn.0045e300
xor eax, eax
call fcn.0045e2a0
call fcn.0045e300
call fcn.0045e300
xor eax, eax
call fcn.0045e2a0
mov eax, ecx
mov ecx, edx
call fcn.0045e2a0
call fcn.0045e300
mov eax, 4
call fcn.0045e300
nop
call fcn.0045ccc0
jmp fcn.005799d0