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

Disassembly:
sub esp, 0x7c
push ebx
mov ebx, dword [esp + 0x90]
push ebp
push esi
mov esi, dword [esp + 0x8c]
push edi
push 0
push dword [ebx]
mov ebp, dword [esi + 0x160]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x2c], 0
lea edi, [ebp + 0x14]
push edi
push esi
call fcn.10055a80
add esp, 0x10
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x10058d9e
push dword [ebx]
lea eax, [ebp + 0x50]
push eax
call fcn.10057430
add esp, 8
test eax, eax
je 0x10058e00
push 0x18
push eax
push edi
push esi
call fcn.10055a80
add esp, 0x10
mov dword [esp + 0x2c], eax
test eax, eax
je 0x10058e00
cmp byte [esi + 0xe8], 0
je 0x10058d9e
push eax
push esi
call fcn.10058480
add esp, 8
test eax, eax
je 0x10058e00
mov eax, dword [esp + 0x2c]
push dword [esi + 0x184]
mov ebp, dword [eax + 0xc]
push dword [esi + 0x178]
mov eax, dword [esp + 0x9c]
mov ebx, dword [esp + 0xa0]
push ebx
push eax
mov eax, dword [eax + 0x24]
mov dword [esp + 0x38], ebp
call eax
mov edi, dword [esi + 0x178]
mov ecx, eax
mov dword [esp + 0x30], ecx
add esp, 0x10
add ecx, ebp
cmp ecx, edi
jle 0x10058e2e
mov eax, dword [esi + 0x10]
add ecx, 0x10
mov dword [esi + 0x178], ecx
shl ecx, 4
push ecx
push dword [esi + 0x184]
call eax
add esp, 8
test eax, eax
jne 0x10058e0d
mov dword [esi + 0x178], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x7c
ret
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x184], eax
cmp ecx, edi
jle 0x10058e2e
push eax
mov eax, dword [esp + 0x98]
push ecx
push ebx
push eax
mov eax, dword [eax + 0x24]
call eax
add esp, 0x10
mov edx, dword [esi + 0x184]
xor ebx, ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x20], ebx
jle 0x10059024
mov ebp, dword [esp + 0x94]
xor ecx, ecx
mov dword [esp + 0x30], ecx
xor edx, edx
nop word [eax + eax]
mov eax, dword [esi + 0x184]
mov dword [esp + 0x34], edx
mov dword [esp + 0x44], edx
mov edi, dword [eax + ecx]
mov eax, dword [ebp + 0x1c]
push edi
push ebp
call eax
add eax, edi
push eax
push edi
push ebp
push esi
call fcn.10054dd0
mov edi, eax
add esp, 0x18
test edi, edi
je 0x10058e00
mov eax, dword [edi]
cmp word [eax - 2], 0
jne 0x10059076
mov edx, dword [esp + 0x18]
mov ecx, 1
mov ebp, dword [esp + 0x30]
mov word [eax - 2], cx
mov ecx, dword [esp + 0x14]
mov eax, dword [edi]
mov dword [edx + ecx*4], eax
inc ecx
add ebp, dword [esi + 0x184]
mov dword [esp + 0x14], ecx
cmp byte [ebp + 0xc], 0
jne 0x10058f3e
cmp byte [edi + 8], 0
mov byte [esp + 0x38], 1
je 0x10058eff
xor ecx, ecx
cmp dword [esp + 0x28], ecx
jle 0x10058eff
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 0x14]
mov eax, edx
cmp edi, dword [eax]
je 0x10058ef4
inc ecx
add eax, 0xc
cmp ecx, dword [esp + 0x28]
jl 0x10058ee4
jmp 0x10058eff
lea eax, [ecx + ecx*2]
mov al, byte [edx + eax*4 + 4]
mov byte [esp + 0x38], al
lea eax, [esi + 0x19c]
push eax
push dword [ebp + 8]
push dword [ebp + 4]
mov ebp, dword [esp + 0xa0]
push dword [esp + 0x44]
push ebp
push esi
call fcn.10058c90
add esp, 0x18
test eax, eax
jne 0x10059827
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea ecx, [eax + ecx*4]
mov eax, dword [esi + 0x1ac]
mov dword [ecx], eax
jmp 0x10058fa4
push dword [ebp + 8]
lea ebx, [esi + 0x19c]
push dword [ebp + 4]
mov ebp, dword [esp + 0x9c]
push ebp
push ebx
call fcn.10056f80
add esp, 0x10
test eax, eax
je 0x1005905a
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebx + 8]
jne 0x10058f7c
push ebx
call fcn.100578b0
add esp, 4
test al, al
je 0x1005905a
mov eax, dword [ebx + 0xc]
xor ecx, ecx
mov edx, dword [esp + 0x18]
mov word [eax], cx
mov ecx, dword [esp + 0x14]
add dword [ebx + 0xc], 2
lea ecx, [edx + ecx*4]
mov eax, dword [ebx + 0x10]
mov dword [ecx], eax
test eax, eax
je 0x10058e00
mov ebx, dword [esp + 0x1c]
mov eax, dword [esi + 0x1a8]
mov dword [esi + 0x1ac], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x10058ff7
cmp byte [edi + 9], 0
je 0x10058fdf
push dword [esp + 0xa0]
push dword [ecx]
push edi
push eax
push esi
call fcn.10050220
add esp, 0x14
test eax, eax
jne 0x10059827
mov edx, dword [esp + 0x44]
jmp 0x10058ffe
mov eax, dword [edi]
mov ecx, 2
mov edx, dword [esp + 0x34]
add edx, 2
inc dword [esp + 0x24]
mov word [eax - 2], cx
jmp 0x10058ffe
mov edx, dword [esp + 0x34]
add edx, 2
mov ecx, dword [esp + 0x30]
inc ebx
add ecx, 0x10
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], ecx
cmp ebx, dword [esp + 0x20]
jl 0x10058e60
mov ebp, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x14]
mov dword [esi + 0x17c], ebx
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x100590a8
mov ecx, dword [ecx]
cmp word [ecx - 2], 0
je 0x100590a8
xor eax, eax
test ebx, ebx
jle 0x100590a2
cmp dword [edx + eax*4], ecx
je 0x1005909c
add eax, 2
cmp eax, ebx
jl 0x10059048
mov eax, dword [esp + 0x2c]
jmp 0x100590b2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword [eax + ecx*4], 0
mov eax, 1
pop ebx
add esp, 0x7c
ret
cmp ebp, dword [esi + 0x90]
jne 0x1005908f
mov eax, dword [esi + 0x184]
add ebx, ebx
mov eax, dword [eax + ebx*8]
mov dword [esi + 0x11c], eax
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0x7c
ret
mov dword [esi + 0x180], eax
mov eax, dword [esp + 0x2c]
jmp 0x100590b2
mov dword [esi + 0x180], 0xffffffff
xor edi, edi
test ebp, ebp
jle 0x1005916f
xor ebp, ebp
nop
mov ecx, dword [eax + 0x14]
mov eax, dword [ecx + ebp]
add ecx, ebp
mov edx, dword [eax]
cmp word [edx - 2], 0
jne 0x1005910b
mov ebx, dword [ecx + 8]
mov dword [esp + 0x44], ebx
test ebx, ebx
je 0x10059107
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x10059147
cmp byte [eax + 9], 0
je 0x1005911b
push dword [esp + 0xa0]
push dword [esp + 0x48]
push eax
push ebx
push esi
call fcn.10050220
add esp, 0x14
test eax, eax
jne 0x10059827
mov ebx, dword [esp + 0x14]
inc edi
add ebp, 0xc
cmp edi, dword [esp + 0x28]
jge 0x1005916f
mov eax, dword [esp + 0x2c]
jmp 0x100590c0
mov ebx, dword [esp + 0x14]
mov eax, 2
inc dword [esp + 0x24]
mov word [edx - 2], ax
mov eax, dword [ecx]
mov edx, dword [esp + 0x18]
mov eax, dword [eax]
mov dword [edx + ebx*4], eax
mov eax, dword [ecx + 8]
mov dword [edx + ebx*4 + 4], eax
add ebx, 2
mov dword [esp + 0x14], ebx
jmp 0x1005910b
mov ebx, dword [esp + 0x14]
mov eax, 1
mov word [edx - 2], ax
mov eax, dword [ecx]
mov edx, dword [esp + 0x18]
mov eax, dword [eax]
mov dword [edx + ebx*4], eax
mov eax, dword [ecx + 8]
mov dword [edx + ebx*4 + 4], eax
add ebx, 2
mov dword [esp + 0x14], ebx
jmp 0x1005910b
mov eax, dword [esp + 0x18]
xor edi, edi
mov dword [esp + 0x38], edi
mov dword [eax + ebx*4], 0
cmp dword [esp + 0x24], edi
je 0x10059669
mov ebx, dword [esp + 0x24]
mov ebp, 1
mov eax, dword [esi + 0x18c]
mov dl, byte [esi + 0x190]
mov dword [esp + 0x28], eax
movzx ecx, dl
lea eax, [ebx + ebx]
shl ebp, cl
sar eax, cl
mov byte [esp + 0x13], dl
mov dword [esp + 0x1c], ebp
test eax, eax
je 0x10059229
mov cl, dl
nop dword [eax + eax]
mov eax, ebx
sar eax, cl
inc cl
test eax, eax
jne 0x100591c0
mov byte [esi + 0x190], cl
cmp cl, 3
jae 0x100591de
mov byte [esi + 0x190], 3
mov cl, 3
mov ebp, 1
lea ebx, [esi + 0x188]
shl ebp, cl
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebx
lea eax, [ebp*2]
add eax, ebp
shl eax, 2
push eax
push dword [ebx]
call ecx
add esp, 8
test eax, eax
jne 0x10059225
mov cl, byte [esp + 0x13]
mov eax, 1
pop edi
mov byte [esi + 0x190], cl
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
mov dword [ebx], eax
jmp 0x1005923b
mov eax, dword [esp + 0x28]
lea ebx, [esi + 0x188]
mov dword [esp + 0x20], ebx
test eax, eax
jne 0x10059269
or eax, 0xffffffff
mov edx, ebp
mov dword [esp + 0x28], eax
test ebp, ebp
je 0x10059269
lea ecx, [ebp*2]
add ecx, ebp
shl ecx, 2
mov eax, dword [ebx]
lea ecx, [ecx - 0xc]
mov dword [ecx + eax], 0xffffffff
sub edx, 1
jne 0x10059254
mov eax, dword [esp + 0x28]
dec eax
mov dword [esp + 0x28], eax
mov dword [esi + 0x18c], eax
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x10059688
mov ecx, dword [esp + 0x18]
lea ecx, [ecx + edi*4]
mov edi, dword [ecx]
mov dword [esp + 0x50], ecx
cmp word [edi - 2], 2
jne 0x10059643
mov eax, dword [esi + 0x1d8]
test eax, eax
je 0x100592af
push eax
call fcn.100553d0
add esp, 4
mov ebx, eax
jmp 0x100592b5
mov ebx, dword [esi + 0x1ec]
xor edx, edx
mov dword [esp + 0x54], 0x70736575
mov eax, edx
mov dword [esp + 0x58], 0x736f6d65
xor eax, 0x646f7261
mov dword [esp + 0x64], 0x6e657261
mov dword [esp + 0x60], eax
mov ecx, ebx
lea eax, [esp + 0x74]
mov dword [esp + 0x68], 0x6c796765
mov dword [esp + 0x7c], eax
xor ecx, 0x6e646f6d
xor eax, eax
mov dword [esp + 0x5c], ecx
push eax
mov word [edi - 2], ax
xor edx, 0x74656462
mov eax, dword [esp + 0x4c]
xorps xmm0, xmm0
push edi
add eax, 0x28
mov dword [esp + 0x78], edx
push eax
xor ebx, 0x79746573
movlpd qword [esp + 0x90], xmm0
push esi
mov dword [esp + 0x7c], ebx
call fcn.10055a80
add esp, 0x10
test eax, eax
je 0x10058e00
mov eax, dword [eax + 4]
test eax, eax
je 0x10058e00
mov ecx, dword [eax + 4]
mov dword [esp + 0x44], ecx
test ecx, ecx
je 0x100596c6
mov eax, dword [ecx + 0x14]
xor ebx, ebx
test eax, eax
jle 0x100593c0
mov edx, dword [esp + 0x20]
nop
mov eax, dword [esp + 0x1c]
mov ebp, edx
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x10]
movzx eax, word [eax + ebx*2]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x1a8]
cmp eax, dword [esi + 0x1a4]
jne 0x1005939a
lea eax, [esi + 0x19c]
push eax
call fcn.100578b0
add esp, 4
test al, al
je 0x10058e00
mov eax, dword [esi + 0x1a8]
inc ebx
mov ecx, dword [esp + 0x40]
mov edx, ebp
mov word [eax], cx
mov ecx, dword [esp + 0x44]
add dword [esi + 0x1a8], 2
mov eax, dword [ecx + 0x14]
cmp ebx, eax
jl 0x10059360
mov dword [esp + 0x20], ebp
mov ebx, dword [esp + 0x1c]
add eax, eax
push eax
push dword [ecx + 0x10]
lea eax, [esp + 0x5c]
push eax
call fcn.100586f0
add esp, 0xc
nop word [eax + eax]
mov ax, word [edi]
add edi, 2
cmp ax, 0x3a
jne 0x100593e0
xor ecx, ecx
mov eax, edi
cmp word [edi], cx
je 0x100593ff
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x100593f5
lea eax, [ecx + ecx]
push eax
lea eax, [esp + 0x58]
push edi
push eax
call fcn.100586f0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
nop word [eax + eax]
mov eax, dword [esi + 0x1a8]
mov ebp, ecx
mov dword [esp + 0x3c], ebx
cmp eax, dword [esi + 0x1a4]
jne 0x1005944b
lea eax, [esi + 0x19c]
push eax
call fcn.100578b0
add esp, 4
test al, al
je 0x10058e00
mov ecx, dword [esi + 0x1a8]
movzx eax, word [edi]
mov word [ecx], ax
mov ecx, ebp
add dword [esi + 0x1a8], 2
movzx eax, word [edi]
add edi, 2
test ax, ax
jne 0x10059420
lea eax, [esp + 0x54]
push eax
call fcn.10058580
mov ecx, dword [esp + 0x40]
add esp, 4
mov dword [esp + 0x34], eax
xor bl, bl
mov dword [esp + 0x1c], ecx
mov edx, ebp
mov dword [esp + 0x20], edx
lea edi, [ecx - 1]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x4c], edi
and edi, eax
mov eax, dword [ebp]
mov dword [esp + 0x30], edi
mov dword [esp + 0x40], eax
lea eax, [edi + edi*2]
mov edi, dword [ebp]
cmp dword [edi + eax*4], ecx
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x30]
jne 0x100595f5
mov edx, dword [esp + 0x40]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebp
nop word [eax + eax]
mov ecx, dword [esp + 0x34]
lea eax, [edi + edi*2]
cmp ecx, dword [edx + eax*4 + 4]
jne 0x10059520
mov ecx, dword [esi + 0x1ac]
mov ebp, dword [edx + eax*4 + 8]
movzx eax, word [ecx]
mov edi, eax
cmp ax, word [ebp]
jne 0x1005950f
mov edx, eax
sub ebp, ecx
movzx edi, dx
test dx, dx
je 0x1005950f
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
mov edi, eax
cmp ax, word [ecx + ebp]
je 0x100594f6
test di, di
je 0x1005908f
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
test bl, bl
jne 0x10059540
mov eax, dword [esp + 0x4c]
mov ebx, eax
not ebx
shr eax, 2
and ebx, ecx
movzx ecx, byte [esi + 0x190]
dec ecx
shr ebx, cl
and bl, al
or bl, 1
mov ebp, dword [esp + 0x1c]
mov edx, edi
movzx ecx, bl
sub edx, ecx
cmp edi, ecx
mov ecx, dword [esp + 0x28]
lea eax, [edx + ebp]
cmovge eax, edx
mov edx, dword [esp + 0x40]
mov edi, eax
mov dword [esp + 0x30], edi
lea eax, [edi + edi*2]
cmp dword [edx + eax*4], ecx
je 0x100594d0
mov edx, dword [esp + 0x20]
cmp byte [esi + 0xe9], 0
je 0x100595fe
mov ecx, dword [esi + 0x1a8]
mov ax, word [esi + 0x1d4]
mov word [ecx - 2], ax
mov eax, dword [esp + 0x44]
mov eax, dword [eax]
mov edi, dword [eax]
nop word [eax + eax]
mov eax, dword [esi + 0x1a8]
mov ebx, edx
cmp eax, dword [esi + 0x1a4]
jne 0x100595c7
lea eax, [esi + 0x19c]
push eax
call fcn.100578b0
add esp, 4
test al, al
je 0x10058e00
mov ecx, dword [esi + 0x1a8]
mov edx, ebx
movzx eax, word [edi]
mov word [ecx], ax
add dword [esi + 0x1a8], 2
movzx eax, word [edi]
add edi, 2
test ax, ax
jne 0x100595a0
mov edi, dword [esp + 0x30]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebx
jmp 0x10059602
mov ebp, dword [esp + 0x1c]
jmp 0x10059571
mov ebx, dword [esp + 0x20]
sub dword [esp + 0x24], 1
lea ecx, [edi + edi*2]
mov eax, dword [esi + 0x1a8]
mov edx, dword [esi + 0x1ac]
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x34]
mov dword [esi + 0x1ac], eax
mov eax, dword [esp + 0x50]
mov dword [eax], edx
mov eax, dword [ebx]
mov dword [eax + ecx*4], ebp
mov eax, dword [ebx]
mov dword [eax + ecx*4 + 4], edi
mov eax, dword [ebx]
mov dword [eax + ecx*4 + 8], edx
je 0x1005965e
mov eax, dword [esp + 0x14]
jmp 0x10059649
xor ecx, ecx
mov word [edi - 2], cx
mov edi, dword [esp + 0x38]
add edi, 2
mov dword [esp + 0x38], edi
cmp edi, eax
jl 0x10059280
jmp 0x10059688
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x14]
add edi, 2
cmp edi, ebx
jge 0x10059688
mov esi, dword [esp + 0x18]
mov eax, dword [esi + edi*4]
xor ecx, ecx
add edi, 2
mov word [eax - 2], cx
cmp edi, ebx
jl 0x10059671
mov esi, dword [esp + 0x90]
mov eax, dword [esp + 0xa0]
mov ecx, dword [eax]
test ecx, ecx
je 0x100596a7
mov eax, dword [ecx + 0xc]
xor edx, edx
mov eax, dword [eax]
mov word [eax - 2], dx
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x10059695
cmp byte [esi + 0xe8], 0
je 0x10059825
mov eax, dword [esp + 0x2c]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x100596ee
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x100596d3
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x7c
ret
mov ebp, dword [esp + 0x9c]
mov edi, dword [ebp]
nop dword [eax]
mov ax, word [edi]
add edi, 2
cmp ax, 0x3a
jne 0x100596e0
jmp 0x1005970a
mov eax, dword [esp + 0x48]
mov ebx, dword [eax + 0x9c]
test ebx, ebx
je 0x10059825
mov ebp, dword [esp + 0x9c]
mov edi, dword [ebp]
xor edx, edx
mov dword [esp + 0x44], edx
cmp byte [esi + 0xe9], dl
je 0x10059730
mov eax, dword [ebx]
mov ecx, dword [eax]
test ecx, ecx
je 0x10059730
mov ax, word [ecx]
lea ecx, [ecx + 2]
inc edx
test ax, ax
jne 0x10059720
mov dword [esp + 0x44], edx
mov dword [ebp + 4], edi
mov eax, dword [ebx + 0x14]
mov dword [ebp + 0x10], eax
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [ebp + 8], eax
mov dword [ebp + 0x14], edx
xor ebp, ebp
nop word [eax + eax]
lea eax, [ebp*2]
inc ebp
cmp word [eax + edi], 0
jne 0x10059750
mov eax, dword [ebx + 0x14]
add eax, edx
add eax, ebp
cmp eax, dword [ebx + 0x18]
jle 0x100597d5
add eax, 0x18
mov dword [esp + 0x50], eax
add eax, eax
push eax
mov eax, dword [esi + 0xc]
call eax
mov ecx, eax
add esp, 4
mov dword [esp + 0x48], ecx
test ecx, ecx
je 0x10058e00
mov eax, dword [esp + 0x50]
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x14]
add eax, eax
push eax
push dword [ebx + 0x10]
push ecx
call fcn.10025090
mov ecx, dword [esi + 0x168]
add esp, 0xc
test ecx, ecx
je 0x100597c3
mov edx, dword [esp + 0x48]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ebx + 0x10]
jne 0x100597bd
mov dword [ecx + 0xc], edx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x100597b2
push dword [ebx + 0x10]
mov eax, dword [esi + 0x14]
call eax
mov eax, dword [esp + 0x4c]
add esp, 4
mov dword [ebx + 0x10], eax
mov ecx, dword [ebx + 0x14]
add ebp, ebp
mov eax, dword [ebx + 0x10]
push ebp
push edi
lea eax, [eax + ecx*2]
push eax
mov dword [esp + 0x5c], eax
call fcn.10025090
mov edx, dword [esp + 0x50]
add esp, 0xc
test edx, edx
je 0x10059819
mov ecx, dword [esp + 0x50]
mov ax, word [esi + 0x1d4]
add ecx, ebp
mov word [ecx - 2], ax
lea eax, [edx + edx]
push eax
mov eax, dword [ebx]
push dword [eax]
push ecx
call fcn.10025090
add esp, 0xc
mov eax, dword [ebx + 0x10]
mov ebx, dword [esp + 0x9c]
mov dword [ebx], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret