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

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x24]
mov ecx, eax
shr eax, 1
push ebp
and eax, 1
push esi
not ecx
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 4]
push edi
xor edi, edi
and ecx, 1
xor ebp, ebp
cmp eax, 0x28
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], 0x400
jle 0x42ed77
add eax, 7
and eax, 0xfffffff8
mov dword [esp + 0x30], eax
jmp 0x42ed83
mov dword [esp + 0x30], 0x28
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [ecx], edi
mov ecx, dword [esp + 0x38]
cmp ecx, edi
je 0x42ee3f
cmp byte [ecx], 0
je 0x42ee3f
mov eax, dword [ebx + 8]
add eax, 1
lea edx, [eax + eax]
push edx
mov dword [esp + 0x28], eax
call fcn.0040f120
mov ebp, eax
add esp, 4
cmp ebp, edi
je 0x42ef97
mov eax, dword [esp + 0x38]
xor edx, edx
mov edi, str.:memory:
mov esi, eax
mov ecx, 9
repe cmpsb byte [esi], byte es:[edi]
mov byte [ebp], dl
jne 0x42ede3
mov dword [esp + 0x14], 1
mov esi, edx
jmp 0x42edf5
mov ecx, dword [esp + 0x24]
mov edx, dword [ebx + 0x24]
push ebp
push ecx
push eax
push ebx
call edx
add esp, 0x10
mov esi, eax
cmp byte [ebp], 0
mov edi, ebp
je 0x42ee08
lea ecx, [ecx]
add edi, 1
cmp byte [edi], 0
jne 0x42ee00
sub edi, ebp
and edi, 0x3fffffff
test esi, esi
jne 0x42ee28
lea eax, [edi + 8]
cmp eax, dword [ebx + 8]
jle 0x42ee3b
mov dword [esp + 0x18], 0xe
mov esi, dword [esp + 0x18]
push ebp
call fcn.0040f3f0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x30]
mov ecx, dword [ebx + 4]
add ecx, 7
add eax, edi
and ecx, 0xfffffff8
lea eax, [ecx + eax*2 + 0xea]
push eax
mov dword [esp + 0x28], eax
call fcn.0040f120
mov esi, eax
add esp, 4
test esi, esi
je 0x42ef8e
mov edx, dword [esp + 0x24]
push edx
push 0
push esi
call fcn.004858f0
lea eax, [esi + 0xb0]
mov dword [esi + 0xa8], eax
add eax, 0x30
mov dword [esi + 0x38], eax
mov ecx, dword [ebx + 4]
add ecx, 7
and ecx, 0xfffffff8
add eax, ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x40], eax
add eax, ecx
mov dword [esi + 0x3c], eax
add eax, ecx
add esp, 0xc
test ebp, ebp
mov dword [esi + 0x84], eax
je 0x42ef09
push edi
lea edx, [eax + edi + 1]
push ebp
push eax
mov dword [esi + 0x88], edx
call fcn.00487dd0
mov eax, dword [esi + 0x88]
add esp, 0xc
push edi
push ebp
push eax
call fcn.00487dd0
mov eax, dword [esi + 0x88]
mov ecx, dword [str._journal]
mov dword [eax + edi], ecx
mov edx, dword [0x4ccc98]
mov dword [eax + edi + 4], edx
mov eax, dword [esi + 0x84]
add esp, 0xc
cmp byte [eax], 0
jne 0x42ef00
mov ecx, dword [esi + 0x88]
mov byte [ecx], 0
push ebp
call fcn.0040f3f0
add esp, 4
mov ecx, dword [esp + 0x38]
test ecx, ecx
mov eax, dword [esp + 0x3c]
mov dword [esi], ebx
mov dword [esi + 0x78], eax
je 0x42efad
cmp byte [ecx], 0
je 0x42efad
cmp dword [esp + 0x14], 0
jne 0x42efad
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + 0x84]
lea edi, [esp + 0x30]
push edi
and eax, 0x7f1f
push eax
push ecx
push edx
mov edx, dword [ebx + 0x18]
push ebx
mov dword [esp + 0x44], 0
call edx
mov edi, eax
mov eax, dword [esp + 0x44]
and eax, 1
add esp, 0x14
test edi, edi
mov dword [esp + 0x38], eax
jne 0x42efd9
test eax, eax
jne 0x42efbe
call fcn.0042df30
mov eax, dword [esi + 0x70]
cmp eax, 0x400
jbe 0x42efbe
cmp eax, 0x2000
mov bl, byte [esp + 0x1c]
jbe 0x42efa4
mov dword [esp + 0x10], 0x2000
jmp 0x42efc2
push ebp
call fcn.0040f3f0
add esp, 4
mov eax, 7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
movzx eax, ax
mov dword [esp + 0x10], eax
jmp 0x42efc2
mov ebx, 1
and eax, ebx
mov byte [esi + 0xe], 4
mov dword [esp + 0x38], eax
jmp 0x42efc2
mov bl, byte [esp + 0x1c]
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
push ecx
mov edi, esi
call fcn.0042e510
mov edi, eax
add esp, 8
test edi, edi
je 0x42f004
mov ebx, dword [esi + 0x38]
mov eax, dword [ebx]
test eax, eax
je 0x42eff1
mov edx, dword [eax + 4]
push ebx
call edx
add esp, 4
mov dword [ebx], 0
push esi
call fcn.0040f3f0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edi, dword [esi + 0xa8]
push 0x30
push 0
push edi
call fcn.004858f0
movzx eax, word [esp + 0x1c]
xor ecx, ecx
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
sete cl
mov edx, eax
neg edx
sbb edx, edx
not edx
and edx, 0x42ec60
cmp dword [esp + 0x28], 0
mov dword [edi + 0x1c], ecx
mov cl, byte [esp + 0x20]
mov ebp, 0x50
mov dword [edi + 0x18], ebp
mov dword [edi + 0x20], edx
mov dword [edi + 0x24], esi
mov dword [edi + 0x10], 0x64
mov byte [esi + 6], cl
je 0x42f06c
cmp dword [esp + 0x38], 0
je 0x42f06c
mov ecx, 1
jmp 0x42f06e
xor ecx, ecx
mov dl, byte [esp + 0x38]
mov byte [esi + 0x15], al
mov byte [esi + 0xd], al
test bl, bl
sete al
mov byte [esi + 0xb], bl
mov byte [esi + 4], bl
mov byte [esi + 0x12], bl
mov byte [esi + 8], bl
mov byte [esi + 9], al
or eax, 0xffffffff
mov bl, 2
mov byte [esi + 7], cl
mov dword [esi + 0x80], 0x3fffffff
mov byte [esi + 0xc], dl
mov byte [esi + 0xa], bl
mov word [esi + 0x74], bp
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa4], eax
call fcn.0042df30
cmp dword [esp + 0x20], 0
jne 0x42f0c5
mov byte [esi + 5], bl
jmp 0x42f0d0
cmp dword [esp + 0x14], 0
je 0x42f0d0
mov byte [esi + 5], 4
mov ecx, dword [esp + 0x34]
pop edi
mov dword [esi + 0x94], 0x414a00
mov dword [ecx], esi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret