Function at 0x596c30
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov eax, dword [ebp + 0x14]
mov ebx, ecx
mov esi, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
mov byte [esp + 0x24], 0x30
mov dword [esp + 0x20], 0x30303030
mov dword [esp + 0x1c], 0x30303030
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], ecx
call 0x596c7b
pop ecx
mov dword [esp + 0x4c], ecx
mov ecx, dword [ebx + 8]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], ecx
test eax, eax
je 0x596e4d
test ecx, ecx
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebp + 0x10]
mov edi, 9
cmovne edi, ecx
test edi, edi
je 0x596e57
test edx, edx
mov dword [esp + 0xc], ecx
je 0x5972ac
mov ebx, edx
xor edx, edx
mov ecx, 0xcccccccd
div ebx
add al, 0x30
mov byte [esp + 0x1c], al
mov eax, ebx
mov ebx, edx
mul ecx
test ebx, ebx
je 0x596e77
shr edx, 3
cmp edi, 1
je 0x596f4b
mov eax, ebx
mov ebx, dword [ebp + 0x10]
cmp ebx, 0xa
jb 0x5972ac
mov ecx, edx
xor edx, edx
div ecx
mov ecx, 0x51eb851f
add al, 0x30
mov byte [esp + 0x1d], al
mov eax, ebx
mov ebx, edx
mul ecx
test ebx, ebx
je 0x596e81
shr edx, 5
cmp edi, 2
je 0x596f4b
mov eax, ebx
mov ebx, dword [ebp + 0x10]
cmp ebx, 0x64
jb 0x5972ac
mov ecx, edx
xor edx, edx
div ecx
mov ecx, 0x10624dd3
add al, 0x30
mov byte [esp + 0x1e], al
mov eax, ebx
mov ebx, edx
mul ecx
test ebx, ebx
je 0x596e8b
shr edx, 6
cmp edi, 3
je 0x596f4b
mov eax, ebx
mov ebx, dword [ebp + 0x10]
cmp ebx, 0x3e8
jb 0x5972ac
mov ecx, edx
xor edx, edx
div ecx
mov ecx, 0xd1b71759
add al, 0x30
mov byte [esp + 0x1f], al
mov eax, ebx
mov ebx, edx
mul ecx
test ebx, ebx
je 0x596e95
shr edx, 0xd
cmp edi, 4
je 0x596f4b
mov ecx, dword [ebp + 0x10]
cmp ecx, 0x2710
jb 0x5972ac
mov eax, ebx
mov ebx, edx
xor edx, edx
div ebx
add al, 0x30
mov ebx, edx
mov byte [esp + 0x20], al
mov eax, ecx
mov ecx, 0xa7c5ac5
shr eax, 5
mul ecx
test ebx, ebx
je 0x596e9f
shr edx, 7
cmp edi, 5
je 0x596f4b
mov eax, ebx
mov ebx, dword [ebp + 0x10]
cmp ebx, 0x186a0
jb 0x5972ac
mov ecx, edx
xor edx, edx
div ecx
mov ecx, 0x431bde83
add al, 0x30
mov byte [esp + 0x21], al
mov eax, ebx
mov ebx, edx
mul ecx
test ebx, ebx
je 0x596ea9
shr edx, 0x12
cmp edi, 6
je 0x596f4b
mov ecx, dword [ebp + 0x10]
cmp ecx, 0xf4240
jb 0x5972ac
mov eax, ebx
mov ebx, edx
xor edx, edx
mov ecx, 0x6b5fca6b
div bx
add al, 0x30
mov ebx, edx
mov byte [esp + 0x22], al
mov eax, dword [ebp + 0x10]
mul ecx
test bx, bx
je 0x596eb3
shr edx, 0x16
cmp edi, 7
jne 0x596ebd
movzx ebx, bx
jmp 0x596f4b
mov ecx, dword [ebx + 0xc]
xor eax, eax
jmp 0x597008
lea edx, [edx + edx*4]
mov dword [esp + 0x2c], edi
cmp edx, eax
jbe 0x596fb8
mov edx, dword [esp + 4]
mov dword [esp + 0x14], 0
jmp 0x597010
mov eax, 1
jmp 0x596ffc
mov eax, 2
jmp 0x596ffc
mov eax, 3
jmp 0x596ffc
mov eax, 4
jmp 0x596ffc
mov eax, 5
jmp 0x596ffc
mov eax, 6
jmp 0x596ffc
mov eax, 7
jmp 0x596ffc
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x18], edx
cmp eax, 0x989680
jb 0x5972ac
mov eax, ebx
xor edx, edx
mov ecx, 0x55e63b89
div word [esp + 0x18]
add al, 0x30
mov ebx, edx
mov byte [esp + 0x23], al
mov eax, dword [ebp + 0x10]
mul ecx
test bx, bx
je 0x596f00
shr edx, 0x19
cmp edi, 8
mov ecx, edx
jne 0x596f0a
movzx ebx, bx
mov edx, ecx
jmp 0x596f4b
mov eax, 8
jmp 0x596ffc
cmp dword [ebp + 0x10], 0x5f5e100
jb 0x5972ac
mov eax, ebx
xor edx, edx
div cx
add al, 0x30
test dx, dx
mov byte [esp + 0x24], al
je 0x596ff7
mov eax, dword [ebp + 0x10]
mov ecx, 0x44b83
mov ebx, edx
shr eax, 9
mul ecx
cmp edi, 9
jne 0x597290
movzx ebx, bx
shr edx, 7
lea eax, [edx + edx*4]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x14], edi
cmp ebx, eax
jae 0x596f6b
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 4]
jmp 0x597010
lea eax, [edi - 1]
mov esi, 0x30
nop word cs:[eax + eax]
nop dword [eax]
movzx edx, byte [esp + eax + 0x1c]
mov edi, eax
mov ebx, edx
inc bl
add eax, 0xffffffff
setb bh
cmp dl, 0x39
movzx ecx, bl
cmovae ecx, esi
mov byte [esp + edi + 0x1c], cl
jb 0x596fa4
test bh, bh
jne 0x596f80
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x14]
mov esi, dword [ebp + 0x1c]
cmp dl, 0x38
jbe 0x596fed
mov eax, dword [esp + 4]
mov edx, dword [ebp + 8]
mov dword [esp + 0x14], edi
add eax, 1
adc edx, 0
jae 0x596fe3
mov al, 1
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x10], eax
jmp 0x597033
mov dword [esp + 4], eax
mov dword [esp + 0x38], eax
jmp 0x597017
mov eax, dword [esp + 4]
mov dword [esp + 0x38], eax
jmp 0x597014
mov eax, 9
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 1
mov dword [esp + 0x10], 0
cmp ecx, 9
mov edi, 9
lea eax, [esp + 0x30]
cmovb edi, ecx
cmp dword [esp + 0x28], 0
mov dword [esp + 0x64], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x2c]
cmove edi, dword [esp + 0x14]
cmp dword [ebx], 0
mov dword [esp + 0x74], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x78], eax
mov dword [esp + 0x50], edi
je 0x5970c6
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x44], edx
mov edx, dword [ebx + 4]
cmp eax, 0x10
mov dword [esp + 0x18], edx
jae 0x5970d6
xor ebx, ebx
test eax, eax
je 0x5970b2
nop word [eax + eax]
mov edx, eax
xor eax, eax
cmp byte [esi], 0xc0
setge al
inc esi
add ebx, eax
mov eax, edx
dec eax
jne 0x5970a0
add ebx, dword [ebp + 0x18]
cmp byte [esp + 0x10], 0
mov eax, 0x14
je 0x5970f9
jmp 0x5971b3
lea ecx, [esp + 0x64]
mov edx, ebx
call fcn.005972e0
jmp 0x597288
push eax
push esi
mov esi, ecx
call fcn.00595b40
mov ecx, esi
add esp, 8
mov ebx, eax
add ebx, dword [ebp + 0x18]
cmp byte [esp + 0x10], 0
mov eax, 0x14
jne 0x5971b3
mov esi, dword [esp + 4]
mov edx, dword [esp + 0x44]
mov eax, esi
or eax, edx
je 0x597180
mov eax, edx
mov dword [esp + 0xc], ecx
shld eax, esi, 0x16
mov dword [esp + 0x10], eax
mov eax, edx
shr eax, 0xa
mov dword [esp + 0x48], eax
push 2
push 0x540be400
push edx
push esi
call fcn.00599400
mov ecx, 0x9502f8
mov dword [esp + 4], esi
mov esi, 0
cmp ecx, dword [esp + 0x10]
mov ecx, 0
sbb ecx, dword [esp + 0x48]
mov ecx, 0xa
cmovae edx, dword [esp + 0x44]
cmovae eax, dword [esp + 4]
cmovae ecx, esi
mov dword [esp + 0x10], ecx
cmp eax, 0x186a0
mov ecx, edx
sbb ecx, 0
jb 0x597187
push 0
push 0x186a0
push edx
push eax
call fcn.00599400
mov esi, dword [esp + 0x10]
or esi, 5
jmp 0x59718b
mov eax, 1
jmp 0x5971b3
mov esi, dword [esp + 0x10]
lea ecx, [eax + 0x5fff6]
lea edx, [eax + 0x7ff9c]
and ecx, edx
lea edx, [eax + 0xdfc18]
add eax, 0x7d8f0
and eax, edx
xor eax, ecx
mov ecx, dword [esp + 0xc]
shr eax, 0x11
lea eax, [esi + eax + 1]
cmp dword [esp + 0x28], 0
cmove ecx, dword [esp + 0x14]
inc ecx
test edi, edi
cmove ecx, edi
mov edi, dword [esp + 0x18]
add ecx, eax
add ebx, ecx
sub edi, ebx
jbe 0x5971ec
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x4c]
xor esi, esi
movzx eax, byte [ecx + 0x20]
add edx, dword [eax*4 + 0x5972c4]
jmp edx
mov edx, dword [esp + 8]
lea ecx, [esp + 0x64]
call fcn.005972e0
jmp 0x597288
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [ebp + 0x10], 0x3b9aca00
jb 0x5972ac
push 0x676dac
push 9
push 9
call fcn.005a0c50
add esp, 0xc
ud2
push 0x676d9c
push 0x19
push str.attempt_to_divide_by_zero
call fcn.005a0b60
add esp, 0xc
ud2