Function at 0x100055a0
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1003a820
push 0x1003244d
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x1003d090]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edx, dword [0x10044c08]
mov dword [ebp - 0x30], edx
xor esi, esi
mov dword [ebp - 0x28], esi
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x24]
xor eax, ecx
mov dword [ebp - 0x1c], eax
xor edi, edi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], ecx
cmp dword [ebp + 0xc], esi
je 0x100057e9
mov ecx, dword [ebp + 0x14]
cmp ecx, esi
je 0x100057e9
mov ebx, dword [ebp + 0x18]
cmp ebx, esi
je 0x100057e9
cmp edx, esi
je 0x100057e9
mov eax, dword [ebp + 0x1c]
cmp eax, esi
je 0x100057e9
cmp eax, ecx
jb 0x100057e9
mov dword [ebp - 4], esi
mov dword [ebp - 4], 1
push eax
call fcn.1000f570
test eax, eax
jne 0x100057e2
mov ebx, dword [ebp + 0x1c]
push ebx
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x1000569b
xor eax, eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp + 0xc], eax
lea ecx, [ebp + 0xc]
push ecx
push 0x1c
lea edx, [ebp - 0x54]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa4]
push edx
call fcn.10013d50
mov edx, eax
call fcn.1006ddfc
jmp 0x100057e2
push 0x100433ac
push ebx
call fcn.10031d7c
add esp, 8
mov ebx, eax
mov dword [ebp - 0x34], ebx
test ebx, ebx
je 0x100057e2
mov eax, dword [ebp + 0x1c]
push eax
push 0
push ebx
call sub.MSVCR90.dll_memset
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
push eax
push ebx
call dword [sym.imp.MSVCR90.dll_memcpy_s]
add esp, 0x1c
mov dword [ebp + 0x18], ebx
mov dword [ebp - 4], 0
nop
mov edx, esi
sub edx, dword [ebp + 0x14]
add edx, dword [ebp + 0x1c]
cmp edi, edx
ja 0x100057b0
mov eax, dword [ebp + 0x18]
lea ebx, [edi + eax]
lea ecx, [ebp - 0x28]
push ecx
push 1
push ebx
mov edx, dword [ebp + 0x20]
push edx
call fcn.10013d50
mov ecx, eax
call fcn.100c7e50
cmp dword [ebp - 0x28], 0
je 0x1000571e
inc edi
mov dword [ebp - 0x24], edi
xor esi, esi
mov dword [ebp - 0x20], esi
jmp 0x100056e0
mov eax, esi
and eax, 3
mov ecx, dword [ebp + 0x10]
mov bl, byte [ebx]
test ecx, ecx
je 0x10005776
test bl, bl
je 0x1000575a
mov edx, dword [ebp - 0x30]
mov al, byte [eax + edx]
xor al, bl
je 0x1000575a
mov edx, dword [ebp + 0xc]
cmp al, byte [esi + edx]
je 0x10005748
cmp byte [esi + ecx], 0xff
jne 0x10005768
inc esi
mov dword [ebp - 0x20], esi
cmp esi, dword [ebp + 0x14]
jne 0x1000576d
inc dword [ebp - 0x1c]
inc edi
mov dword [ebp - 0x24], edi
jmp 0x100057b0
mov eax, dword [ebp + 0xc]
cmp bl, byte [esi + eax]
je 0x10005748
cmp byte [esi + ecx], 0xff
je 0x10005748
xor esi, esi
mov dword [ebp - 0x20], esi
inc edi
mov dword [ebp - 0x24], edi
jmp 0x100056e0
test bl, bl
je 0x10005790
mov ecx, dword [ebp - 0x30]
mov al, byte [eax + ecx]
xor al, bl
je 0x10005790
inc edi
mov dword [ebp - 0x24], edi
mov edx, dword [ebp + 0xc]
cmp al, byte [esi + edx]
jmp 0x1000579a
inc edi
mov dword [ebp - 0x24], edi
mov eax, dword [ebp + 0xc]
cmp bl, byte [esi + eax]
jne 0x10005717
inc esi
mov dword [ebp - 0x20], esi
cmp esi, dword [ebp + 0x14]
jne 0x100056e0
inc dword [ebp - 0x1c]
mov dword [ebp - 0x38], 1
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp + 0x20]
xor eax, dword [ebp + 0x24]
inc eax
cmp eax, dword [ebp - 0x1c]
jne 0x100057e9
sub edi, esi
add dword [ebp - 0x2c], edi
jmp 0x100057e9
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x100057f9
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [ebp + 0x1c], 0
pushal
rdtsc
mov dword [ebp + 0x1c], eax
popal
mov edx, dword [ebp - 0x2c]
mov dword [ebp + 0x14], edx
mov ecx, dword [ebp + 0x1c]
mov eax, dword [0x10044828]
mov dword [eax], ecx
mov al, dh
xor al, dl
mov byte [ebp + 0x15], al
mov dl, byte [ebp + 0x16]
xor dl, al
mov byte [ebp + 0x16], dl
xor byte [ebp + 0x17], dl
xor ecx, 0x56891346
mov eax, dword [ebp + 0x14]
add eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20