Function at 0x10059020
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 0x1005906b
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 0x1005923d
test ecx, ecx
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebp + 0x10]
mov edi, 9
cmovne edi, ecx
test edi, edi
je 0x10059247
test edx, edx
mov dword [esp + 0xc], ecx
je 0x10059697
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 0x10059267
shr edx, 3
cmp edi, 1
je 0x1005933b
mov eax, ebx
mov ebx, dword [ebp + 0x10]
cmp ebx, 0xa
jb 0x10059697
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 0x10059271
shr edx, 5
cmp edi, 2
je 0x1005933b
mov eax, ebx
mov ebx, dword [ebp + 0x10]
cmp ebx, 0x64
jb 0x10059697
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 0x1005927b
shr edx, 6
cmp edi, 3
je 0x1005933b
mov eax, ebx
mov ebx, dword [ebp + 0x10]
cmp ebx, 0x3e8
jb 0x10059697
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 0x10059285
shr edx, 0xd
cmp edi, 4
je 0x1005933b
mov ecx, dword [ebp + 0x10]
cmp ecx, 0x2710
jb 0x10059697
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 0x1005928f
shr edx, 7
cmp edi, 5
je 0x1005933b
mov eax, ebx
mov ebx, dword [ebp + 0x10]
cmp ebx, 0x186a0
jb 0x10059697
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 0x10059299
shr edx, 0x12
cmp edi, 6
je 0x1005933b
mov ecx, dword [ebp + 0x10]
cmp ecx, 0xf4240
jb 0x10059697
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 0x100592a3
shr edx, 0x16
cmp edi, 7
jne 0x100592ad
movzx ebx, bx
jmp 0x1005933b
mov ecx, dword [ebx + 0xc]
xor eax, eax
jmp 0x100593f8
lea edx, [edx + edx*4]
mov dword [esp + 0x2c], edi
cmp edx, eax
jbe 0x100593a8
mov edx, dword [esp + 4]
mov dword [esp + 0x14], 0
jmp 0x10059400
mov eax, 1
jmp 0x100593ec
mov eax, 2
jmp 0x100593ec
mov eax, 3
jmp 0x100593ec
mov eax, 4
jmp 0x100593ec
mov eax, 5
jmp 0x100593ec
mov eax, 6
jmp 0x100593ec
mov eax, 7
jmp 0x100593ec
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x18], edx
cmp eax, 0x989680
jb 0x10059697
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 0x100592f0
shr edx, 0x19
cmp edi, 8
mov ecx, edx
jne 0x100592fa
movzx ebx, bx
mov edx, ecx
jmp 0x1005933b
mov eax, 8
jmp 0x100593ec
cmp dword [ebp + 0x10], 0x5f5e100
jb 0x10059697
mov eax, ebx
xor edx, edx
div cx
add al, 0x30
test dx, dx
mov byte [esp + 0x24], al
je 0x100593e7
mov eax, dword [ebp + 0x10]
mov ecx, 0x44b83
mov ebx, edx
shr eax, 9
mul ecx
cmp edi, 9
jne 0x10059680
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 0x1005935b
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 4]
jmp 0x10059400
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 0x10059394
test bh, bh
jne 0x10059370
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x14]
mov esi, dword [ebp + 0x1c]
cmp dl, 0x38
jbe 0x100593dd
mov eax, dword [esp + 4]
mov edx, dword [ebp + 8]
mov dword [esp + 0x14], edi
add eax, 1
adc edx, 0
jae 0x100593d3
mov al, 1
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x10], eax
jmp 0x10059423
mov dword [esp + 4], eax
mov dword [esp + 0x38], eax
jmp 0x10059407
mov eax, dword [esp + 4]
mov dword [esp + 0x38], eax
jmp 0x10059404
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 0x100594b6
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x44], edx
mov edx, dword [ebx + 4]
cmp eax, 0x10
mov dword [esp + 0x18], edx
jae 0x100594c6
xor ebx, ebx
test eax, eax
je 0x100594a2
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 0x10059490
add ebx, dword [ebp + 0x18]
cmp byte [esp + 0x10], 0
mov eax, 0x14
je 0x100594e9
jmp 0x100595a3
lea ecx, [esp + 0x64]
mov edx, ebx
call fcn.100596c0
jmp 0x10059678
push eax
push esi
mov esi, ecx
call sym.kso.dll_core::str::count::do_count_chars::hadaf5b86ef33fccc
mov ecx, esi
add esp, 8
mov ebx, eax
add ebx, dword [ebp + 0x18]
cmp byte [esp + 0x10], 0
mov eax, 0x14
jne 0x100595a3
mov esi, dword [esp + 4]
mov edx, dword [esp + 0x44]
mov eax, esi
or eax, edx
je 0x10059570
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.1006ee50
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 0x10059577
push 0
push 0x186a0
push edx
push eax
call fcn.1006ee50
mov esi, dword [esp + 0x10]
or esi, 5
jmp 0x1005957b
mov eax, 1
jmp 0x100595a3
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 0x100595dc
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x4c]
xor esi, esi
movzx eax, byte [ecx + 0x20]
add edx, dword [eax*4 + 0x100596a8]
jmp edx
mov edx, dword [esp + 8]
lea ecx, [esp + 0x64]
call fcn.100596c0
jmp 0x10059678
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [ebp + 0x10], 0x3b9aca00
jb 0x10059697
push 0x10085e90
push 9
push 9
call sym.kso.dll_core::panicking::panic_bounds_check::hda298f763923bd76
push 0x10085e80
push 0x19
push str.attempt_to_divide_by_zero
call sym.kso.dll_core::panicking::panic::hd53872080d8d36e0
mov al, byte [0x56b0000]
add byte [eax], al
add dword [0x58a0000], 0
add ah, cl
int3