Function at 0x10045850
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x24
mov eax, dword [esi]
push ebx
mov ebx, dword [esp + 0x2c]
mov edx, dword [ebx + 0x188]
mov ecx, dword [ebx + 0x1b4]
mov dword [esp + 4], edx
mov edx, dword [ebx + 0x50]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx + 0x48]
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edx
test edx, edx
jne 0x10045890
mov dword [esp + 0x18], 1
add ecx, eax
mov eax, dword [esi + 0x20]
push ebp
mov ebp, dword [esi + 4]
lea eax, [eax + eax*4]
lea edi, [ebp + eax*4]
mov eax, dword [ebx + 0x54]
mov dword [esp + 0x14], ecx
lea ecx, [eax + eax*4]
lea edx, [esp + 0xc]
lea ebp, [ebp + ecx*4]
push edx
mov ecx, esi
call fcn.10045700
add esp, 4
cmp byte [ebx + 0x14], 0
je 0x100458cd
cmp byte [ebx + 0x15], 0
je 0x100458cd
mov al, 1
jmp 0x100458cf
xor al, al
movzx eax, al
shl eax, 5
xor eax, dword [esi + 0x58]
and eax, 0x20
xor dword [esi + 0x58], eax
cmp byte [ebx + 0x1be], 0
je 0x100458f6
mov eax, 0xa
cmp dword [esp + 0x14], eax
jge 0x100458f6
mov dword [esp + 0x14], eax
mov ecx, ebp
sub ecx, edi
push ecx
push 0
push edi
call sub.msvcrt.dll_memset
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
and dword [esi + 0x58], 0xfffffff7
lea ebx, [ebx + ebx*4]
lea eax, [eax + eax*4]
add ebx, ebx
mov edx, edi
add eax, eax
and edx, 7
add ebx, ebx
add eax, eax
add edi, edx
add esp, 0xc
add ebx, ebx
add eax, eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xc]
lea ecx, [eax*4]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], ecx
mov eax, dword [esi + 8]
lea edx, [esp + 0xc]
push edx
push ebp
lea edi, [esp + 0x18]
mov ecx, ebx
mov dword [esp + 0x14], 0
call fcn.10007b50
mov ecx, dword [esp + 0x30]
mov dword [esi + 8], eax
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi + 0x3c]
push ebp
call fcn.10007b50
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0xc]
push ebp
call fcn.10007b50
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x24]
push edx
add ecx, ecx
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x40]
push ebp
add ecx, ecx
call fcn.10007b50
mov ecx, dword [esp + 0x44]
mov dword [esi + 0x40], eax
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esi + 0x38]
add ecx, ecx
push ebp
add ecx, ecx
call fcn.10007b50
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x48]
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0xc8]
push ebp
call fcn.10007b50
mov edi, dword [esp + 0x3c]
add esp, 0x30
mov dword [esi + 0xc8], eax
test edi, edi
je 0x100459fa
mov ecx, dword [esp + 0x18]
mov eax, edi
cdq
push edx
push eax
call fcn.10015870
add esp, 8
mov dword [esi + 0xac], eax
mov eax, dword [esi + 0xac]
mov dword [esp + 0x10], eax
lea ebp, [edi + eax]
test edi, edi
je 0x10045a19
mov edx, dword [esp + 0x18]
cmp byte [edx + 0x41], 0
je 0x10045942
cmp dword [esi + 0x3c], 0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x24], eax
mov dword [esi + 0xc4], ecx
pop ebp
je 0x10045a60
mov ecx, dword [esp + 0x1c]
mov word [esi + 0x44], cx
test ecx, ecx
jle 0x10045a60
xor eax, eax
nop
mov edx, dword [esi + 0x3c]
mov edi, 1
mov word [eax + edx + 8], di
mov edx, dword [esi + 0x3c]
mov edi, dword [esp + 0x14]
mov dword [eax + edx + 0x20], edi
add eax, 0x28
sub ecx, 1
jne 0x10045a40
mov ecx, dword [esi + 0x40]
mov edi, dword [esp + 0x30]
test ecx, ecx
je 0x10045aae
cmp dword [edi + 0x1b8], 0
jle 0x10045aae
movzx eax, word [edi + 0x1b8]
mov word [esi + 0x46], ax
mov edx, dword [edi + 0x1d4]
cwde
add eax, eax
add eax, eax
push eax
push edx
push ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [edi + 0x1b8]
mov ecx, dword [edi + 0x1d4]
add eax, eax
add eax, eax
push eax
push 0
push ecx
call sub.msvcrt.dll_memset
add esp, 0x18
mov eax, dword [esi + 8]
test eax, eax
je 0x10045af0
mov ecx, dword [esp + 0x10]
add eax, 0xffffffd8
cmp ecx, 1
mov dword [esi + 8], eax
mov dword [esi + 0x1c], ecx
jl 0x10045af0
mov eax, 0x28
lea esp, [esp]
mov edx, dword [esi + 8]
mov ebx, 0x80
mov word [eax + edx + 8], bx
mov edx, dword [esi + 8]
mov ebx, dword [esp + 0x14]
mov dword [eax + edx + 0x20], ebx
add eax, 0x28
sub ecx, 1
jne 0x10045ad0
movzx eax, byte [edi + 0x1be]
xor eax, dword [esi + 0x58]
pop edi
and eax, 3
xor dword [esi + 0x58], eax
mov eax, esi
pop ebx
add esp, 0x24
jmp fcn.10007b80