Function at 0x1005ce70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
push ebx
mov ebx, ecx
mov ecx, eax
shr eax, 1
push ebp
and eax, 1
push esi
not ecx
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 4]
push edi
xor edi, edi
and ecx, 1
xor ebp, ebp
cmp eax, 0x28
mov dword [esp + 0x10], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], 0x400
jle 0x1005ceb9
add eax, 7
and eax, 0xfffffff8
mov dword [esp + 0x14], eax
jmp 0x1005cec5
mov dword [esp + 0x14], 0x28
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
mov dword [ecx], edi
mov ecx, dword [esp + 0x38]
cmp ecx, edi
je 0x1005cf9c
cmp byte [ecx], 0
je 0x1005cf9c
mov esi, dword [ebx + 8]
inc esi
lea edx, [esi + esi]
push edx
call fcn.100536b0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x1005d070
mov edx, dword [esp + 0x38]
mov edi, str.:memory:
mov eax, edx
mov cl, byte [eax]
cmp cl, byte [edi]
jne 0x1005cf25
test cl, cl
je 0x1005cf21
mov cl, byte [eax + 1]
cmp cl, byte [edi + 1]
jne 0x1005cf25
add eax, 2
add edi, 2
test cl, cl
jne 0x1005cf05
xor eax, eax
jmp 0x1005cf2a
sbb eax, eax
sbb eax, 0xffffffff
mov byte [ebp], 0
test eax, eax
jne 0x1005cf3c
mov dword [esp + 0x1c], 1
jmp 0x1005cf4c
mov eax, dword [ebx + 0x24]
push ebp
push esi
push edx
push ebx
call eax
add esp, 0x10
mov dword [esp + 0x10], eax
cmp byte [ebp], 0
mov edi, ebp
je 0x1005cf5a
inc edi
cmp byte [edi], 0
jne 0x1005cf54
sub edi, ebp
and edi, 0x3fffffff
cmp dword [esp + 0x10], 0
jne 0x1005cf83
lea ecx, [edi + 8]
cmp ecx, dword [ebx + 8]
jle 0x1005cf98
mov eax, 0x9609
call fcn.100aa3e0
mov dword [esp + 0x10], eax
test eax, eax
je 0x1005cf98
push ebp
call fcn.100539b0
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [esp + 0x14]
mov edx, dword [ebx + 4]
add edx, 7
and edx, 0xfffffff8
lea eax, [edx + eax*2]
lea ecx, [edi + edi*2]
lea eax, [eax + ecx + 0xf7]
push eax
mov dword [esp + 0x2c], eax
call fcn.100536b0
mov esi, eax
add esp, 4
test esi, esi
je 0x1005d067
mov edx, dword [esp + 0x28]
push edx
push 0
push esi
call sub.MSVCR90.dll_memset
lea eax, [esi + 0xb8]
mov dword [esi + 0xa8], eax
add eax, 0x30
mov dword [esi + 0x3c], eax
mov ecx, dword [ebx + 4]
add ecx, 7
and ecx, 0xfffffff8
add eax, ecx
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x44], eax
add eax, ecx
mov dword [esi + 0x40], eax
add eax, ecx
add esp, 0xc
mov dword [esi + 0x90], eax
test ebp, ebp
je 0x1005d0ae
push edi
lea edx, [eax + edi + 1]
push ebp
push eax
mov dword [esi + 0x94], edx
call sub.MSVCR90.dll_memcpy
mov eax, dword [esi + 0x94]
add esp, 0xc
push edi
push ebp
push eax
call sub.MSVCR90.dll_memcpy
mov eax, dword [esi + 0x94]
mov ecx, dword [str._journal]
mov dword [eax + edi], ecx
mov edx, dword [0x100e22bc]
mov dword [eax + edi + 4], edx
mov eax, dword [esi + 0x90]
add esp, 0xc
cmp byte [eax], 0
jne 0x1005d07d
mov ecx, dword [esi + 0x94]
mov byte [ecx], 0
jmp 0x1005d0a5
push ebp
call fcn.100539b0
add esp, 4
mov eax, 7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov edx, dword [esi + 0x94]
push edi
lea eax, [edx + edi + 9]
push ebp
push eax
mov dword [esi + 0xb0], eax
call sub.MSVCR90.dll_memcpy
mov eax, dword [esi + 0xb0]
add esp, 0xc
mov dword [edi + eax], 0x6c61772d
push ebp
call fcn.100539b0
add esp, 4
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov dword [esi], ebx
mov dword [esi + 0x78], eax
test ecx, ecx
je 0x1005d129
cmp byte [ecx], 0
je 0x1005d129
cmp dword [esp + 0x1c], 0
jne 0x1005d129
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x90]
lea edi, [esp + 0x38]
push edi
and eax, 0x87f3f
push eax
push ecx
mov ecx, dword [ebx + 0x18]
push edx
push ebx
mov dword [esp + 0x4c], 0
call ecx
mov ebx, dword [esp + 0x4c]
mov edi, eax
add esp, 0x14
and ebx, 1
test edi, edi
jne 0x1005d163
test ebx, ebx
jne 0x1005d142
call fcn.1005bbe0
mov eax, dword [esi + 0x7c]
cmp eax, 0x400
jbe 0x1005d142
cmp eax, 0x2000
jbe 0x1005d123
mov dword [esp + 0x18], 0x2000
jmp 0x1005d142
mov dword [esp + 0x18], eax
jmp 0x1005d142
mov edi, dword [esp + 0x10]
and eax, 1
mov dword [esp + 0x20], 1
mov byte [esi + 0xe], 1
mov byte [esi + 0xf], 4
mov ebx, eax
test edi, edi
jne 0x1005d163
or ebp, 0xffffffff
lea edx, [esp + 0x18]
push ebp
push edx
mov edi, esi
call fcn.1005c5d0
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x1005d18e
mov edi, eax
mov ebx, dword [esi + 0x3c]
mov eax, dword [ebx]
test eax, eax
je 0x1005d17b
mov eax, dword [eax + 4]
push ebx
call eax
add esp, 4
mov dword [ebx], 0
push esi
call fcn.100539b0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov edi, dword [esi + 0xa8]
push 0x30
push 0
push edi
call sub.MSVCR90.dll_memset
mov ecx, dword [esp + 0x24]
xor edx, edx
mov dword [edi + 0x14], ecx
mov ecx, dword [esp + 0x28]
add esp, 0xc
test ecx, ecx
sete dl
mov eax, ecx
neg eax
sbb eax, eax
not eax
and eax, 0x1005cd80
cmp dword [esp + 0x2c], 0
mov dword [edi + 0x1c], edx
mov dl, byte [esp + 0x24]
mov dword [edi + 0x18], 0x50
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], esi
mov dword [edi + 0x10], 0x64
mov byte [esi + 6], dl
je 0x1005d1f0
test ebx, ebx
je 0x1005d1f0
mov eax, 1
jmp 0x1005d1f2
xor eax, eax
mov byte [esi + 7], al
mov al, byte [esp + 0x20]
test al, al
mov byte [esi + 0xb], al
mov byte [esi + 4], al
mov byte [esi + 0x10], al
mov byte [esi + 0xd], cl
mov byte [esi + 8], al
sete al
mov ecx, 0x50
mov dword [esi + 0x84], 0x3fffffff
mov byte [esi + 0xc], bl
mov byte [esi + 9], al
mov byte [esi + 0xa], 2
mov word [esi + 0x74], cx
mov dword [esi + 0x88], ebp
mov dword [esi + 0x8c], ebp
call fcn.1005bbe0
cmp dword [esp + 0x24], 0
jne 0x1005d248
mov byte [esi + 5], 2
jmp 0x1005d253
cmp dword [esp + 0x1c], 0
je 0x1005d253
mov byte [esi + 5], 4
mov edx, dword [esp + 0x34]
pop edi
mov dword [esi + 0xa0], 0x10062270
mov dword [edx], esi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret