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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov ecx, eax
not ecx
and ecx, 1
shr eax, 1
push ebx
and eax, 1
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 8]
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 4]
push edi
xor edi, edi
xor ebx, ebx
cmp eax, 0x28
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], 0x400
jle 0x410095
add eax, 7
and eax, 0xfffffff8
mov dword [ebp - 8], eax
jmp 0x41009f
mov dword [ebp - 8], 0x28
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [edx], edi
mov edx, dword [ebp + 0x10]
cmp edx, edi
je 0x410177
cmp byte [edx], bl
je 0x410177
mov esi, dword [ecx + 8]
inc esi
lea eax, [esi + esi]
push eax
call fcn.004065a0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41024b
mov edx, dword [ebp + 0x10]
mov edi, str.:memory:
mov eax, edx
jmp 0x4100e0
mov cl, byte [eax]
cmp cl, byte [edi]
jne 0x410100
test cl, cl
je 0x4100fc
mov cl, byte [eax + 1]
cmp cl, byte [edi + 1]
jne 0x410100
add eax, 2
add edi, 2
test cl, cl
jne 0x4100e0
xor eax, eax
jmp 0x410105
sbb eax, eax
sbb eax, 0xffffffff
mov byte [ebx], 0
test eax, eax
jne 0x410118
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], 1
jmp 0x41012a
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x24]
push edx
push esi
call ecx
add esp, 0x10
mov dword [ebp - 4], eax
cmp byte [ebx], 0
mov edi, ebx
je 0x410137
inc edi
cmp byte [edi], 0
jne 0x410131
sub edi, ebx
and edi, 0x3fffffff
cmp dword [ebp - 4], 0
jne 0x41015e
lea edx, [edi + 8]
cmp edx, dword [esi + 8]
jle 0x410171
mov eax, 0x92cc
call fcn.0045f150
mov dword [ebp - 4], eax
test eax, eax
je 0x410171
push ebx
call fcn.00406880
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 4]
add ecx, 7
and ecx, 0xfffffff8
lea edx, [ecx + eax*2]
lea eax, [edi + edi*2]
lea eax, [edx + eax + 0xf7]
push eax
mov dword [ebp - 0x1c], eax
call fcn.004065a0
mov esi, eax
add esp, 4
test esi, esi
je 0x410242
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
push esi
call fcn.004eb2d0
mov ecx, dword [ebp + 8]
lea eax, [esi + 0xb8]
mov dword [esi + 0xa4], eax
add eax, 0x30
mov dword [esi + 0x38], eax
mov edx, dword [ecx + 4]
add edx, 7
and edx, 0xfffffff8
add eax, edx
mov edx, dword [ebp - 8]
mov dword [esi + 0x40], eax
add eax, edx
mov dword [esi + 0x3c], eax
add eax, edx
add esp, 0xc
mov dword [esi + 0x8c], eax
test ebx, ebx
je 0x41028b
push edi
lea ecx, [eax + edi + 1]
push ebx
push eax
mov dword [esi + 0x90], ecx
call fcn.004ec470
mov edx, dword [esi + 0x90]
add esp, 0xc
push edi
push ebx
push edx
call fcn.004ec470
mov eax, dword [esi + 0x90]
mov ecx, dword [str._journal]
mov dword [eax + edi], ecx
mov edx, dword [0x52b398]
mov dword [eax + edi + 4], edx
mov eax, dword [esi + 0x8c]
add esp, 0xc
cmp byte [eax], 0
jne 0x410257
mov ecx, dword [esi + 0x90]
mov byte [ecx], 0
jmp 0x41027f
push ebx
call fcn.00406880
add esp, 4
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x90]
push edi
lea eax, [edx + edi + 9]
push ebx
push eax
mov dword [esi + 0xb0], eax
call fcn.004ec470
mov eax, dword [esi + 0xb0]
add esp, 0xc
mov dword [edi + eax], 0x6c61772d
push ebx
call fcn.00406880
mov ecx, dword [ebp + 8]
add esp, 4
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [esi], ecx
mov dword [esi + 0x80], eax
test edx, edx
je 0x41030a
cmp byte [edx], 0
je 0x41030a
cmp dword [ebp - 0x10], 0
jne 0x41030a
mov edx, dword [esi + 0x38]
mov edi, dword [esi + 0x8c]
lea ebx, [ebp + 0x10]
push ebx
and eax, 0x87f3f
push eax
push edx
push edi
push ecx
mov ecx, dword [ecx + 0x18]
mov dword [ebp + 0x10], 0
call ecx
mov edi, eax
mov eax, dword [ebp + 0x10]
and eax, 1
add esp, 0x14
mov dword [ebp + 8], eax
test edi, edi
jne 0x41033d
test eax, eax
jne 0x41031d
call fcn.0040ed90
mov eax, dword [esi + 0x78]
cmp eax, 0x400
jbe 0x41031d
mov bl, byte [ebp - 0x14]
cmp eax, 0x2000
jbe 0x410302
mov dword [ebp - 0xc], 0x2000
jmp 0x410320
movzx edx, ax
mov dword [ebp - 0xc], edx
jmp 0x410320
mov edi, dword [ebp - 4]
mov ebx, 1
and eax, ebx
mov byte [esi + 0xe], 4
mov dword [ebp + 8], eax
jmp 0x410320
mov bl, byte [ebp - 0x14]
test edi, edi
jne 0x41033d
lea eax, [ebp - 0xc]
push 0xffffffffffffffff
push eax
mov edi, esi
call fcn.0040f720
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x410367
mov edi, eax
mov ebx, dword [esi + 0x38]
mov eax, dword [ebx]
test eax, eax
je 0x410355
mov ecx, dword [eax + 4]
push ebx
call ecx
add esp, 4
mov dword [ebx], 0
push esi
call fcn.00406880
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esi + 0xa4]
push 0x30
push 0
push edi
call fcn.004eb2d0
movzx edx, word [ebp - 0xc]
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov dword [edi + 0x14], edx
add esp, 0xc
test eax, eax
sete cl
mov edx, eax
neg edx
sbb edx, edx
not edx
and edx, 0x40ff50
cmp dword [ebp - 0x20], 0
mov dword [edi + 0x1c], ecx
mov cl, byte [ebp - 0x18]
mov dword [edi + 0x18], 0x50
mov dword [edi + 0x20], edx
mov dword [edi + 0x24], esi
mov dword [edi + 0x10], 0x64
mov byte [esi + 6], cl
je 0x4103c9
cmp dword [ebp + 8], 0
je 0x4103c9
mov ecx, 1
jmp 0x4103cb
xor ecx, ecx
mov dl, byte [ebp + 8]
mov byte [esi + 0x16], al
mov byte [esi + 0xd], al
test bl, bl
sete al
mov byte [esi + 7], cl
mov byte [esi + 9], al
mov eax, 0xffffffff
mov ecx, 0x50
mov dword [esi + 0x88], 0x3fffffff
mov byte [esi + 0xb], bl
mov byte [esi + 4], bl
mov byte [esi + 0x12], bl
mov byte [esi + 0xc], dl
mov byte [esi + 8], bl
mov byte [esi + 0xa], 2
mov word [esi + 0x7c], cx
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
call fcn.0040ed90
cmp dword [ebp - 0x18], 0
jne 0x410421
mov byte [esi + 5], 2
jmp 0x41042b
cmp dword [ebp - 0x10], 0
je 0x41042b
mov byte [esi + 5], 4
mov edx, dword [ebp + 0xc]
mov dword [esi + 0x9c], 0x4150e0
pop edi
mov dword [edx], esi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret