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

Disassembly:
push 0xffffffffffffffff
push 0x5ec757
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
cmp dword [esp + 0x144], 0x14
mov ebp, dword [esp + 0x140]
mov edi, ecx
mov dword [esp + 0x18], edi
jl 0x597980
lea esi, [esp + 0x4c]
add ebp, 8
call fcn.004b28c0
mov ecx, dword [eax]
mov dword [edi + 0x18], ecx
mov edx, dword [eax + 4]
xor ebx, ebx
mov dword [edi + 0x1c], edx
xor eax, eax
lea ecx, [ebx + 4]
jmp 0x5978f4
mov eax, dword [esp + 0x1c]
movzx edx, byte [ebp]
shl eax, 8
or eax, edx
add ebp, 1
sub ecx, 1
mov dword [esp + 0x1c], eax
jne 0x5978f0
xor eax, eax
lea ecx, [eax + 4]
jmp 0x597914
mov eax, dword [esp + 0x30]
movzx edx, byte [ebp]
shl eax, 8
or eax, edx
add ebp, 1
sub ecx, 1
mov dword [esp + 0x30], eax
jne 0x597910
xor eax, eax
lea ecx, [eax + 4]
jmp 0x597934
mov eax, dword [esp + 0x2c]
movzx edx, byte [ebp]
shl eax, 8
or eax, edx
add ebp, 1
sub ecx, 1
mov dword [esp + 0x2c], eax
jne 0x597930
mov eax, dword [esp + 0x144]
add eax, 0xffffffec
cdq
mov ecx, 6
idiv ecx
cmp edx, ebx
mov esi, eax
je 0x597987
push ebx
push ebx
push 0x611070
push 0xffffffffffffffff
push 0xb1
lea esi, [esp + 0x60]
call fcn.004b2660
push eax
mov ecx, edi
call fcn.00596780
xor al, al
jmp 0x597d53
lea eax, [esp + 0x44]
mov ecx, edi
call fcn.005676f0
mov dword [esp + 0x138], ebx
cmp dword [esp + 0x44], ebx
jne 0x5979c1
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
lea eax, [esp + 0x44]
mov dword [esp + 0x138], 0xffffffff
call fcn.00565750
jmp 0x597d51
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
cmp esi, ebx
mov byte [esp + 0x138], 1
jle 0x597b18
mov dword [esp + 0x14], esi
xor eax, eax
mov dword [esp + 0xa8], 0xf
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
mov byte [esp + 0x138], 2
mov al, byte [ebp]
mov cl, byte [ebp + 1]
add ebp, 1
mov dl, byte [ebp + 1]
add ebp, 1
movzx esi, dl
mov dl, byte [ebp + 1]
add ebp, 1
movzx edx, dl
push edx
movzx ecx, cl
push esi
movzx eax, al
push ecx
push eax
push str._u._u._u._u
mov esi, 0x64
lea edi, [esp + 0xd8]
add ebp, 1
call fcn.0049f990
mov eax, edi
add esp, 0x14
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x597a70
sub eax, esi
push eax
lea ecx, [esp + 0xc8]
push ecx
lea ecx, [esp + 0x98]
call fcn.0040b860
xor eax, eax
lea esi, [eax + 2]
xor edx, edx
mov dh, al
add ebp, 1
sub esi, 1
mov dl, byte [ebp - 1]
movzx eax, dx
jne 0x597a95
movzx eax, ax
mov dword [esp + 0xac], eax
xor eax, eax
lea ecx, [esp + 0x90]
push ecx
lea esi, [esp + 0x38]
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
call fcn.00594760
mov byte [esp + 0x138], 1
cmp dword [esp + 0xa8], 0x10
jb 0x597b09
mov edx, dword [esp + 0x94]
push edx
call fcn.0059b877
add esp, 4
sub dword [esp + 0x14], 1
jne 0x5979e1
mov edi, dword [esp + 0x18]
call fcn.00559d50
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
mov byte [esp + 0x138], 3
mov eax, dword [edi + 0x1c8]
mov eax, dword [eax]
add edi, 0x1c4
mov ebp, eax
mov eax, dword [edi + 4]
mov dword [esp + 0x50], eax
cmp edi, ebx
je 0x597b55
mov eax, dword [esp + 0x18]
add eax, 0x1c4
cmp edi, eax
je 0x597b5a
call fcn.005b8b18
cmp ebp, dword [esp + 0x50]
je 0x597bba
cmp edi, ebx
jne 0x597b69
call fcn.005b8b18
cmp ebp, dword [edi + 4]
jne 0x597b73
call fcn.005b8b18
lea ecx, [ebp + 8]
push ecx
lea esi, [esp + 0x5c]
call fcn.004a90b0
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 4]
lea ecx, [eax + 4]
push edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.00594c30
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.00559e40
mov eax, dword [esp + 0x14]
mov dword [eax], esi
mov ecx, dword [esi + 4]
mov dword [ecx], esi
cmp ebp, dword [edi + 4]
jne 0x597bb5
call fcn.005b8b18
mov ebp, dword [ebp]
jmp 0x597b44
push ebx
mov edi, 0xf
push 0x611070
lea ecx, [esp + 0x7c]
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
call fcn.0040b860
mov edx, dword [esp + 0x18]
mov byte [esp + 0x138], 4
xor eax, eax
add edx, 0x1a8
push edx
lea esi, [esp + 0x94]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ebx
call fcn.004a90b0
push ebx
mov ecx, dword [esp + 0x48]
push 0xc8
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x7c]
push edx
lea edx, [esp + 0x64]
push edx
mov edx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x34]
push 0x3c
push edx
lea edx, [esp + 0x54]
push edx
lea edx, [esp + 0x44]
push edx
mov edx, esi
mov esi, dword [esp + 0x40]
push edx
lea edx, [esi + 0x80]
push edx
call eax
mov byte [esp + 0x138], 3
cmp dword [esp + 0x8c], 0x10
jb 0x597c83
mov ecx, dword [esp + 0x78]
push ecx
call fcn.0059b877
add esp, 4
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
call eax
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x24]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x24]
cmp eax, ecx
mov dword [esp + 0x28], ebx
je 0x597cd5
lea esp, [esp]
mov esi, dword [eax]
push eax
call fcn.0059b877
mov ecx, dword [esp + 0x28]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x597cc0
push ecx
call fcn.0059b877
mov eax, dword [esp + 0x3c]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x24], ebx
je 0x597d08
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x3c]
push ecx
call fcn.00595800
mov edx, dword [esp + 0x3c]
add esp, 4
push edx
call fcn.0059b877
add esp, 4
mov dword [esp + 0x138], 0xffffffff
mov esi, dword [esp + 0x48]
cmp esi, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
je 0x597d51
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x597d51
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x597d51
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov al, 1
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.005b88a9
add esp, 0x128
ret 8