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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x598ad0
mov ebx, ecx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov ecx, dword [ebx + 0x7c]
test ecx, ecx
jle 0x596585
cmp ecx, 1
lea ecx, [ecx - 1]
mov dword [ebx + 0x7c], ecx
je 0x596c39
mov eax, dword [ebx + 0x78]
test eax, eax
jle 0x59659b
lea edx, [eax - 1]
cmp eax, 1
mov dword [ebx + 0x78], edx
je 0x596c40
mov edi, dword [ebp + 8]
test edi, edi
je 0x5969f7
lea eax, [ebx + 0x24]
lea esi, [ebx + 0x34]
lea ecx, [ebx + 4]
xor edx, edx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x30], ecx
mov esi, dword [edi + 4]
lea ecx, [esi - 1]
cmp ecx, 0x14
ja case.default.0x5965cb
mov eax, edx
jmp dword [ecx*4 + 0x596cb8]
test dl, 1
jne 0x596b12
mov edi, dword [edi + 0xc]
mov eax, edx
test edi, edi
jne 0x5965ba
jmp case.0x5965cb.12
mov eax, dword [ebx]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x48], eax
mov esi, dword [ebx + 4]
mov edi, dword [ebx + 8]
cmp esi, edi
je 0x5968d6
sub edi, esi
mov ebx, edi
sar ebx, 2
cmp ebx, 0x40000000
jae 0x596c21
cmp ebx, 0x400
jb 0x596864
lea eax, [edi + 0x23]
mov dword [ebp - 0x10], 0xffffffff
push eax
call fcn.005d0220
add esp, 4
mov ecx, eax
add eax, 0x23
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x5968b2
mov eax, edi
mov edi, edx
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 4]
mov ecx, edx
shr ecx, 5
mov eax, dword [eax + ecx*4]
bt eax, edx
jae 0x59687a
mov esi, dword [ebx + 0x14]
mov eax, dword [ebx]
mov ecx, dword [esi + edx*8]
mov edx, dword [esi + edx*8 + 4]
cmp ecx, edx
je 0x5968a4
mov esi, dword [ebx + 0x50]
mov dword [ebp - 0x2c], esi
mov esi, dword [ebx + 0x5c]
mov dword [ebp - 0x48], esi
mov esi, dword [ebx + 0x70]
mov dword [ebp - 0x10], 0xffffffff
push dword [ebp - 0x48]
push esi
push edx
push ecx
push dword [ebp - 0x2c]
push eax
call fcn.00596ec0
add esp, 0x18
cmp eax, dword [ebx]
mov edx, edi
jne 0x5968a6
jmp 0x596b63
mov esi, edi
mov eax, dword [edi + 0x14]
mov ecx, dword [ebx]
mov esi, dword [ebx + 0x14]
mov dword [ebp - 0x20], edx
mov dword [esi + eax*8], ecx
mov ecx, dword [ebx + 0x10]
cmp dword [edi + 0x14], ecx
jae 0x596708
nop word cs:[eax + eax]
nop dword [eax]
mov eax, dword [ebx + 4]
dec ecx
mov esi, 0xfffffffe
mov edx, ecx
rol esi, cl
shr edx, 5
and dword [eax + edx*4], esi
cmp dword [edi + 0x14], ecx
jb 0x5966f0
mov edx, dword [ebp - 0x20]
jmp case.0x5965cb.1
mov eax, dword [ebx]
cmp eax, dword [ebx + 0x50]
je 0x59687e
mov dword [ebp - 0x10], 0xffffffff
mov ecx, ebx
push edi
call fcn.00597000
mov edx, eax
xor dl, 1
jmp case.0x5965cb.1
mov ecx, dword [ebx]
mov al, 1
cmp ecx, dword [ebx + 0x50]
je case.0x5965cb.12
mov esi, edx
mov dl, byte [ecx]
cmp dl, 0xa
je case.0x5965cb.12
cmp dl, 0xd
je case.0x5965cb.12
inc ecx
mov edx, esi
mov dword [ebx], ecx
jmp case.0x5965cb.1
mov eax, dword [edi + 0x14]
cmp byte [ebx + 0x65], 0
mov ecx, dword [eax + 0x14]
jne 0x596775
test ecx, ecx
je case.0x5965cb.1
mov dword [ebp - 0x20], edx
mov edx, dword [ebx + 4]
mov esi, ecx
shr esi, 5
mov dword [ebp - 0x28], edx
mov edx, edi
mov edi, 1
shl edi, cl
mov ecx, dword [ebp - 0x28]
or dword [ecx + esi*4], edi
mov edi, edx
mov eax, dword [eax + 0x14]
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x14]
mov dword [edx + eax*8 + 4], ecx
mov edx, dword [ebp - 0x20]
jmp case.0x5965cb.1
mov eax, dword [ebx]
cmp eax, dword [ebx + 0x50]
je 0x596885
cmp byte [eax], 0xa
setne dl
jmp case.0x5965cb.1
mov edx, dword [ebx + 0x60]
mov eax, dword [ebx]
test edx, 0x100
jne 0x5967d4
cmp eax, dword [ebx + 0x4c]
je 0x59688a
cmp byte [eax - 1], 0xa
setne dl
jmp case.0x5965cb.1
mov ecx, dword [ebx + 0x5c]
mov dword [ebp - 0x20], edx
mov edx, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov eax, dword [ebx + 0x50]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebx + 0x70]
add esi, edx
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebx]
mov dword [ebp - 0x10], 0xffffffff
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push esi
push edx
push eax
push ecx
call fcn.00596ec0
add esp, 0x18
cmp eax, dword [ebx]
je 0x596b63
mov edx, dword [ebp - 0x20]
mov dword [ebx], eax
jmp case.0x5965cb.1
mov ecx, dword [ebx + 0x60]
mov eax, dword [ebx]
test ecx, 0x100
jne 0x59683d
cmp eax, dword [ebx + 0x4c]
je 0x5969c6
cmp eax, dword [ebx + 0x50]
je 0x596892
movzx ecx, byte [eax - 1]
movzx eax, byte [eax]
cmp byte [ecx + 0x68c1bc], 0
setne cl
cmp byte [eax + 0x68c1bc], 0
setne al
xor al, cl
jmp 0x5969e9
test edi, edi
je 0x5968b0
mov dword [ebp - 0x10], 0xffffffff
push edi
call fcn.005d0220
add esp, 4
jmp 0x5968b2
mov edx, edi
jmp 0x5968a8
mov dl, 1
jmp case.0x5965cb.1
mov dl, byte [ebx + 0x60]
shr dl, 1
and dl, 1
jmp case.0x5965cb.1
test cl, 8
jne 0x5969df
movzx eax, byte [eax - 1]
jmp 0x5969d3
mov edx, edi
mov dword [ebx], eax
mov edi, dword [ebp - 0x28]
jmp case.0x5965cb.1
xor eax, eax
lea ebx, [eax + ebx*4]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ebx
push edi
push esi
push eax
call fcn.0061e340
add esp, 0xc
mov dword [ebp - 0x3c], ebx
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x10], 1
mov eax, dword [ebx + 0x10]
mov ecx, ebx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x10], 1
push eax
call fcn.00596540
cmp dword [ebp - 0x2c], 0xb
mov edi, dword [ebp - 0x28]
setne cl
cmp cl, al
je 0x596966
mov ebx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x44]
mov dl, 1
cmp ebx, eax
mov dword [ebx], ecx
je 0x596971
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
mov esi, dword [ebx + 4]
mov ecx, dword [ebx + 0xc]
sub edx, eax
sub ecx, esi
mov dword [ebp - 0x2c], eax
mov eax, edx
sar ecx, 2
mov dword [ebp - 0x20], edx
sar eax, 2
cmp eax, ecx
jbe 0x596949
mov ecx, dword [ebp - 0x30]
push eax
call fcn.00531440
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
mov esi, dword [eax]
push edx
push dword [ebp - 0x2c]
push esi
call fcn.0061e340
add esp, 0xc
add esi, dword [ebp - 0x20]
mov dl, 1
mov dword [ebx + 8], esi
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0x10], eax
jmp 0x596971
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je case.0x5965cb.1
mov eax, dword [ebp - 0x38]
mov esi, edx
sub eax, ecx
cmp eax, 0x1000
jb 0x5969a0
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x596c2d
add eax, 0x23
mov ecx, edx
push eax
push ecx
call fcn.005d319e
add esp, 8
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov edx, esi
jmp case.0x5965cb.1
cmp eax, dword [ebx + 0x50]
je 0x5969e3
test cl, 4
jne 0x5969df
movzx eax, byte [eax]
cmp byte [eax + 0x68c1bc], 0
setne al
jmp 0x5969e9
xor eax, eax
jmp 0x5969e9
test cl, 0xc
sete al
test byte [edi + 8], 1
sete dl
xor dl, al
jmp case.0x5965cb.1
xor eax, eax
test ecx, ecx
jg 0x596b1b
jmp 0x596b1f
mov eax, dword [edi + 8]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, ebx
and eax, 2
shr eax, 1
push 0
push eax
push edi
mov esi, edx
call fcn.00597880
jmp 0x596a35
mov dword [ebp - 0x10], 0xffffffff
mov ecx, ebx
push edi
mov esi, edx
call fcn.00597190
mov ecx, esi
test al, al
movzx ecx, cl
mov eax, 1
cmovne eax, ecx
jmp case.0x5965cb.12
movzx eax, word [ebx + 0x60]
test eax, 0x2020
je 0x596a5f
mov eax, dword [ebx + 0x4c]
cmp eax, dword [ebx]
je 0x596b63
cmp byte [ebx + 0x74], 0
je 0x596a72
mov ecx, dword [ebx]
mov al, 1
cmp ecx, dword [ebx + 0x50]
jne case.0x5965cb.12
cmp byte [ebx + 0x64], 0
je 0x596b67
mov eax, dword [ebx + 0x68]
test eax, eax
mov dword [ebp - 0x28], eax
je 0x596b12
mov esi, dword [ebx + 0x24]
xor ecx, ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ebx
jmp 0x596aac
inc ecx
mov esi, eax
cmp dword [ebp - 0x28], ecx
je 0x596c08
mov edx, ecx
mov eax, esi
shr edx, 5
mov edi, dword [esi + edx*4]
mov esi, 1
shl esi, cl
bt edi, ecx
jae 0x596aa0
mov edi, dword [ebp - 0x24]
mov edi, dword [edi + 4]
test dword [edi + edx*4], esi
mov dword [ebp - 0x30], edi
je 0x596aa0
mov edx, dword [ebp - 0x24]
mov esi, dword [edx + 0x14]
mov edi, dword [edx + 0x34]
mov edx, dword [edi + ecx*8]
mov ebx, dword [esi + ecx*8]
cmp edx, ebx
jne 0x596aef
mov edx, dword [edi + ecx*8 + 4]
mov ebx, dword [esi + ecx*8 + 4]
cmp edx, ebx
je 0x596aa0
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x30]
mov esi, dword [ecx + 0x4c]
sub edx, esi
sub ebx, esi
mov esi, eax
cmp edx, ebx
mov edx, dword [ebp - 0x20]
mov ebx, ecx
jge 0x596b12
jmp 0x596b6d
mov eax, dword [edi + 0x14]
cmp dword [eax + 0x24], 0
je 0x596b38
mov eax, edx
mov ecx, dword [ebx + 0x7c]
test ecx, ecx
jle 0x596b1f
inc ecx
mov dword [ebx + 0x7c], ecx
mov ecx, dword [ebp - 0x18]
test al, 1
sete al
mov dword fs:[0], ecx
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov ecx, dword [ebx + 0x40]
mov esi, dword [eax + 0x20]
mov edi, edx
mov edx, dword [eax + 8]
mov esi, dword [ecx + esi*8]
and edx, 2
mov ecx, ebx
mov dword [ebp - 0x10], 0xffffffff
shr edx, 1
push esi
push edx
push eax
call fcn.00597880
mov ecx, edi
jmp 0x596a37
mov al, 1
jmp case.0x5965cb.12
mov edi, dword [ebx + 4]
mov esi, dword [ebx + 0x24]
mov eax, dword [ebx]
mov ecx, ebx
mov ebx, dword [ebx + 8]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
mov dword [ecx + 0x20], eax
sub ebx, edi
mov ecx, dword [ecx + 0x2c]
mov eax, ebx
sar eax, 2
sub ecx, esi
sar ecx, 2
cmp eax, ecx
jbe 0x596ba4
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, esi
push eax
call fcn.00531440
mov esi, dword [esi]
push ebx
push edi
push esi
call fcn.0061e340
add esp, 0xc
mov edx, dword [ebp - 0x24]
add esi, ebx
mov dword [edx + 0x28], esi
mov eax, dword [edx + 0x10]
mov edi, dword [edx + 0x14]
mov dword [edx + 0x30], eax
mov esi, dword [edx + 0x18]
mov ecx, dword [edx + 0x3c]
mov ebx, dword [edx + 0x34]
sub esi, edi
sub ecx, ebx
mov eax, esi
sar ecx, 3
sar eax, 3
cmp eax, ecx
jbe 0x596bed
mov ebx, dword [ebp - 0x50]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, ebx
push eax
call fcn.00598830
mov ebx, dword [ebx]
push esi
push edi
push ebx
call fcn.0061e340
add esp, 0xc
mov eax, dword [ebp - 0x24]
add ebx, esi
mov dword [eax + 0x38], ebx
mov ebx, eax
mov byte [eax + 0x64], 1
jmp 0x596c0b
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
jmp case.0x5965cb.12
mov dword [ebp - 0x10], 0xffffffff
push 0xd
call fcn.00606917
mov dword [ebp - 0x10], 0xffffffff
call fcn.005e8c60
mov dword [ebp - 0x10], 0
call fcn.006207e0
push 0xc
call fcn.00606917
push 0xb
call fcn.00606917
nop word [eax + eax]
push ebp
sub esp, 0x18
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x18
add ebp, 0xc
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x596cab
mov eax, dword [ebp - 0x38]
sub eax, ecx
cmp eax, 0x1000
jb 0x596c8c
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x596cb0
add eax, 0x23
mov ecx, edx
push eax
push ecx
call fcn.005d319e
add esp, 8
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
add esp, 0x18
pop ebp
ret
call fcn.006207e0
nop dword [eax]
shl byte [ebp + 0x59], cl
add byte [esi - 1476372121], bh
pop ecx
add byte [edi], ah
push 0x67340059
pop ecx
add al, ah
pop ecx
add byte [eax], dl
pop ecx
add dl, dl
pop ecx
add dl, dl
pop ecx
add cl, ch
pop ecx
add cl, ch
pop ecx
add byte [ebx + ebp*2], dl
pop ecx
add bl, cl
pop cx
add byte [ecx + 0x67], ah
pop ecx
add byte [edx + 0x66], ah
pop ecx
add byte [edx + ebp*2], ah
pop ecx
add dl, dl
pop ecx
add byte [esi], al
push 0x59
add byte [ecx], cl
imul ebx, dword [ecx], 0xffffffd2
pop ecx
add byte [ecx + 0x6a], cl
pop ecx
add ah, cl
int3