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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, ecx
mov dword [ebp - 0x24], edx
push ebx
xor ebx, ebx
mov dword [ebp - 8], eax
mov ecx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ecx
mov edx, ebx
mov ecx, dword [ebp + 0x10]
not ecx
mov dword [ebp - 0x14], ebx
and ecx, 1
mov dword [ebp - 4], edx
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 0x10]
shr ecx, 1
push esi
and ecx, 1
mov dword [ebp - 0xc], 0x400
push edi
mov dword [ebp + 0x10], ecx
mov edi, ebx
push 0x28
pop ecx
cmp dword [eax + 4], ecx
mov esi, ebx
cmovg ecx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x24]
mov dword [ecx], ebx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x409fa5
cmp byte [ecx], dl
je 0x409fa5
mov eax, dword [eax + 8]
inc eax
mov dword [ebp - 4], eax
add eax, eax
push eax
call fcn.00403ce0
mov esi, eax
pop ecx
test esi, esi
jne 0x409f52
push 7
pop eax
jmp 0x40a1b1
push 9
push str.:memory:
push dword [ebp + 8]
call fcn.004e21e4
add esp, 0xc
mov byte [esi], bl
test eax, eax
jne 0x409f73
mov dword [ebp - 0x10], 1
jmp 0x409f86
mov eax, dword [ebp - 8]
push esi
push dword [ebp - 4]
push dword [ebp + 8]
push eax
call dword [eax + 0x24]
add esp, 0x10
mov edi, eax
mov ecx, esi
call fcn.00405a28
mov edx, eax
mov dword [ebp - 4], edx
test edi, edi
jne 0x409fc3
mov eax, dword [ebp - 8]
lea ecx, [edx + 8]
cmp ecx, dword [eax + 8]
jle 0x409fa5
push 0xe
jmp 0x409fc2
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x18]
add eax, 0xea
add ecx, edx
lea ecx, [eax + ecx*2]
call fcn.004040bc
mov ecx, eax
test ecx, ecx
jne 0x409fd1
push 7
pop edi
push esi
call fcn.00403f10
pop ecx
mov eax, edi
jmp 0x40a1b1
mov eax, dword [ebp - 8]
mov edi, ecx
add ecx, 0xb0
mov dword [edi + 0xa8], ecx
add ecx, 0x30
mov dword [edi + 0x38], ecx
add ecx, dword [eax + 4]
mov dword [edi + 0x40], ecx
add ecx, dword [ebp - 0x18]
mov dword [edi + 0x3c], ecx
add ecx, dword [ebp - 0x18]
mov dword [edi + 0x84], ecx
test esi, esi
je 0x40a050
mov edx, dword [ebp - 4]
push edx
push esi
push ecx
lea eax, [edx + 1]
add eax, ecx
mov dword [edi + 0x88], eax
call fcn.004d8a10
add esp, 0xc
push dword [ebp - 4]
push esi
push dword [edi + 0x88]
call fcn.004d8a10
mov ecx, dword [edi + 0x88]
add esp, 0xc
mov edx, dword [ebp - 4]
mov eax, dword [str._journal]
push esi
mov dword [ecx + edx], eax
mov eax, dword [0x51ef80]
mov dword [ecx + edx + 4], eax
call fcn.00403f10
mov eax, dword [ebp - 8]
pop ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
mov dword [edi], eax
mov dword [edi + 0x78], edx
test ecx, ecx
je 0x40a0b8
cmp byte [ecx], bl
je 0x40a0b8
cmp dword [ebp - 0x10], ebx
jne 0x40a0b8
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
push ecx
push edx
push dword [edi + 0x38]
push dword [edi + 0x84]
push eax
call dword [eax + 0x18]
mov esi, eax
add esp, 0x14
mov eax, dword [ebp + 8]
and eax, 1
mov dword [ebp - 0x14], eax
test esi, esi
jne 0x40a0d2
test eax, eax
jne 0x40a0c2
mov ecx, edi
call fcn.00409534
cmp dword [edi + 0x70], 0x400
jbe 0x40a0c2
mov eax, 0x2000
cmp dword [edi + 0x70], eax
jbe 0x40a0b2
mov dword [ebp - 0xc], eax
jmp 0x40a0c2
movzx eax, word [edi + 0x70]
jmp 0x40a0ad
xor ecx, ecx
mov byte [edi + 0xe], 4
inc ecx
mov dword [ebp - 0x1c], ecx
lea edx, [ebp - 0xc]
mov ecx, edi
call fcn.0040998e
mov esi, eax
test esi, esi
je 0x40a0e8
mov ecx, dword [edi + 0x38]
call fcn.0040362e
push edi
call fcn.00403f10
pop ecx
mov eax, esi
jmp 0x40a1b1
mov esi, dword [edi + 0xa8]
push 0x30
push ebx
push esi
call fcn.004d9060
movzx eax, word [ebp - 0xc]
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov edx, 0x409e1e
mov dword [esi + 0x14], eax
xor eax, eax
test ecx, ecx
mov dword [esi + 0x18], 0x50
mov dword [esi + 0x24], edi
sete al
mov dword [esi + 0x10], 0x64
mov dword [esi + 0x1c], eax
xor eax, eax
test ecx, ecx
cmove eax, edx
mov edx, dword [ebp - 0x14]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x20]
mov byte [edi + 6], al
cmp dword [ebp + 0x10], ebx
je 0x40a145
test edx, edx
je 0x40a145
xor eax, eax
inc eax
jmp 0x40a147
mov eax, ebx
mov byte [edi + 7], al
mov eax, dword [ebp - 0x1c]
mov byte [edi + 0x15], cl
mov dword [edi + 0x80], 0x3fffffff
mov byte [edi + 0xb], al
mov byte [edi + 4], al
mov byte [edi + 0x12], al
mov byte [edi + 0xd], cl
mov byte [edi + 0xc], dl
test al, al
jne 0x40a172
cmp dword [ebp - 0x20], ebx
jne 0x40a175
xor ebx, ebx
inc ebx
test bl, bl
mov byte [edi + 8], bl
mov ecx, edi
mov byte [edi + 0xa], 2
sete al
mov dword [edi + 0x74], 0x50
or dword [edi + 0xa0], 0xffffffff
or dword [edi + 0xa4], 0xffffffff
mov byte [edi + 9], al
call fcn.00409534
cmp dword [ebp - 0x10], 0
je 0x40a1aa
mov byte [edi + 5], 4
mov eax, dword [ebp - 0x24]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret