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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, ecx
mov ecx, eax
push esi
shr eax, 1
push edi
not ecx
and ecx, 1
and eax, 1
xor edi, edi
push 0x28
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 4]
pop ecx
xor esi, esi
cmp eax, ecx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 0x400
jle 0x49eb69
add eax, 7
and eax, 0xfffffff8
mov dword [ebp - 8], eax
jmp 0x49eb6e
mov dword [ebp - 8], ecx
mov eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], edi
mov ecx, dword [ebp + 0xc]
cmp ecx, edi
je 0x49ec0c
cmp byte [ecx], 0
je 0x49ec0c
mov eax, dword [ebx + 8]
inc eax
mov dword [ebp - 0x20], eax
add eax, eax
push eax
call fcn.00498b94
pop ecx
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x49eba6
push 7
pop eax
jmp 0x49ee3a
mov esi, dword [ebp + 0xc]
push 9
xor edx, edx
mov edi, str.:memory:
pop ecx
repe cmpsb byte [esi], byte es:[edi]
mov byte [eax], dl
jne 0x49ebc2
mov dword [ebp - 0x14], 1
jmp 0x49ebd6
push eax
push dword [ebp - 0x20]
push dword [ebp + 0xc]
push ebx
call dword [ebx + 0x24]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
add esp, 0x10
mov ecx, eax
call fcn.0049a63b
cmp dword [ebp - 0xc], 0
mov esi, eax
jne 0x49ebf4
lea eax, [esi + 8]
cmp eax, dword [ebx + 8]
jle 0x49ec07
mov dword [ebp - 0xc], 0xe
mov esi, dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.00498dc2
pop ecx
mov eax, esi
jmp 0x49ee3a
mov eax, dword [ebp - 8]
xor edi, edi
mov ecx, dword [ebx + 4]
add ecx, 7
add eax, esi
and ecx, 0xfffffff8
lea eax, [ecx + eax*2 + 0xea]
push eax
call fcn.00498f61
pop ecx
cmp eax, edi
jne 0x49ec2e
push 7
pop esi
jmp 0x49ebf7
mov edi, eax
add eax, 0xb0
mov dword [edi + 0xa8], eax
add eax, 0x30
mov dword [edi + 0x38], eax
mov ecx, dword [ebx + 4]
add ecx, 7
and ecx, 0xfffffff8
add eax, ecx
mov dword [edi + 0x40], eax
add eax, dword [ebp - 8]
mov dword [edi + 0x3c], eax
add eax, dword [ebp - 8]
cmp dword [ebp - 4], 0
mov dword [edi + 0x84], eax
je 0x49ecc3
push esi
push dword [ebp - 4]
lea ecx, [eax + esi + 1]
push eax
mov dword [edi + 0x88], ecx
call fcn.004eff60
add esp, 0xc
push esi
push dword [ebp - 4]
push dword [edi + 0x88]
call fcn.004eff60
mov eax, dword [edi + 0x88]
mov ecx, dword [str._journal]
mov dword [eax + esi], ecx
mov ecx, dword [0x549790]
mov dword [eax + esi + 4], ecx
mov eax, dword [edi + 0x84]
add esp, 0xc
cmp byte [eax], 0
jne 0x49ecba
mov eax, dword [edi + 0x88]
mov byte [eax], 0
push dword [ebp - 4]
call fcn.00498dc2
pop ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [edi], ebx
mov dword [edi + 0x78], eax
test ecx, ecx
je 0x49ed33
cmp byte [ecx], 0
je 0x49ed33
cmp dword [ebp - 0x14], 0
jne 0x49ed33
and dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [edi + 0x38]
mov eax, ebx
push dword [edi + 0x84]
call fcn.00498502
mov ebx, eax
mov eax, dword [ebp - 0xc]
and eax, 1
add esp, 0x10
mov dword [ebp + 0xc], eax
test ebx, ebx
jne 0x49ed57
test eax, eax
jne 0x49ed42
mov esi, edi
call fcn.0049e16f
mov eax, dword [edi + 0x70]
cmp eax, 0x400
jbe 0x49ed42
mov ecx, 0x2000
cmp eax, ecx
jbe 0x49ed2b
mov dword [ebp - 0x10], ecx
jmp 0x49ed42
movzx eax, ax
mov dword [ebp - 0x10], eax
jmp 0x49ed42
xor ecx, ecx
inc ecx
and eax, ecx
mov dword [ebp - 0x18], ecx
mov byte [edi + 0xe], 4
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x10]
push 0xffffffffffffffff
push eax
mov ebx, edi
call fcn.0049e5d1
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x49ed6d
mov esi, dword [edi + 0x38]
call fcn.004984ab
push edi
call fcn.00498dc2
pop ecx
mov eax, ebx
jmp 0x49ee3a
mov esi, dword [edi + 0xa8]
push 0x30
push 0
push esi
call fcn.004ee670
movzx eax, word [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
xor edx, edx
add esp, 0xc
mov dword [esi + 0x14], eax
xor eax, eax
cmp ebx, eax
sete dl
push 0x50
pop ecx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x24], edi
mov dword [esi + 0x10], 0x64
mov dword [esi + 0x1c], edx
mov edx, ebx
neg edx
sbb edx, edx
not edx
and edx, 0x49ea6d
mov dword [esi + 0x20], edx
mov dl, byte [ebp - 0x1c]
mov byte [edi + 6], dl
cmp dword [ebp - 0x24], eax
je 0x49edc8
cmp dword [ebp + 0xc], eax
je 0x49edc8
inc eax
mov dl, byte [ebp + 0xc]
mov byte [edi + 7], al
mov al, byte [ebp - 0x18]
test al, al
mov byte [edi + 0xb], al
mov byte [edi + 4], al
mov byte [edi + 0x12], al
mov byte [edi + 8], al
sete al
or dword [edi + 0xa0], 0xffffffff
or dword [edi + 0xa4], 0xffffffff
mov esi, edi
mov byte [edi + 0x15], bl
mov dword [edi + 0x80], 0x3fffffff
mov byte [edi + 0xd], bl
mov byte [edi + 0xc], dl
mov byte [edi + 9], al
mov byte [edi + 0xa], 2
mov word [edi + 0x74], cx
call fcn.0049e16f
cmp dword [ebp - 0x1c], 0
jne 0x49ee21
mov byte [edi + 5], 2
jmp 0x49ee29
test ebx, ebx
je 0x49ee29
mov byte [edi + 5], 4
mov eax, dword [ebp + 8]
mov dword [edi + 0x94], 0x4a0dd8
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret