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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov edx, dword [ebp + 8]
mov eax, ecx
push ebx
not eax
and eax, 1
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [edx + 4]
push edi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], 0x400
mov dword [ebp - 0x18], edi
mov dword [ebp - 8], edi
cmp eax, 0x28
jle 0x4e5f83
add eax, 7
and eax, 0xfffffff8
mov dword [ebp - 0x10], eax
jmp 0x4e5f8a
mov dword [ebp - 0x10], 0x28
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [eax], edi
test cl, 2
je 0x4e6184
mov dword [ebp - 0x14], 1
cmp esi, edi
je 0x4e5fd3
cmp byte [esi], bl
je 0x4e6184
push edi
mov ebx, esi
call fcn.004db270
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4e6292
mov ecx, ebx
call fcn.004dd0f0
mov edi, eax
mov dword [ebp + 0x10], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov edx, dword [ebp - 0x10]
add eax, 7
and eax, 0xfffffff8
add eax, dword [ebp - 8]
lea ecx, [edi + edi*2]
lea eax, [eax + edx*2]
lea eax, [ecx + eax + 0x101]
push eax
mov dword [ebp - 0x24], eax
call fcn.004dab90
mov esi, eax
add esp, 4
test esi, esi
je 0x4e6289
mov ecx, dword [ebp - 0x24]
push ecx
push 0
push esi
call fcn.005ff630
mov ecx, dword [ebp + 8]
lea eax, [esi + 0xc0]
mov dword [esi + 0xb4], eax
add eax, 0x30
mov dword [esi + 0x3c], eax
mov edx, dword [ecx + 4]
add edx, 7
and edx, 0xfffffff8
add eax, edx
mov edx, dword [ebp - 0x10]
mov dword [esi + 0x44], eax
add eax, edx
mov dword [esi + 0x40], eax
add eax, edx
add esp, 0xc
mov dword [esi + 0x90], eax
test ebx, ebx
je 0x4e6100
mov ecx, dword [ebp - 8]
push edi
lea edx, [eax + ecx]
lea ecx, [edx + edi + 1]
push ebx
push eax
mov dword [esi + 0x94], ecx
call fcn.00602090
mov eax, dword [ebp - 8]
add esp, 0xc
test eax, eax
je 0x4e608c
mov edx, dword [ebp - 0x18]
push eax
mov eax, dword [esi + 0x90]
push edx
lea ecx, [eax + edi + 1]
push ecx
call fcn.00602090
add esp, 0xc
mov edx, dword [esi + 0x94]
push edi
push ebx
push edx
call fcn.00602090
mov ecx, dword [str._journal]
mov eax, dword [esi + 0x94]
mov dword [eax + edi], ecx
mov edx, dword [0x693a80]
mov dword [eax + edi + 4], edx
mov cl, byte [0x693a84]
add esp, 0xc
mov byte [eax + edi + 8], cl
mov edx, dword [esi + 0x94]
push edi
lea eax, [edx + edi + 9]
push ebx
push eax
mov dword [esi + 0xbc], eax
call fcn.00602090
mov eax, dword [esi + 0xbc]
mov ecx, dword [str._wal]
mov dword [eax + edi], ecx
mov dl, byte [0x693a8c]
add esp, 0xc
push ebx
mov byte [eax + edi + 4], dl
call fcn.004dae60
mov ecx, dword [ebp + 8]
add esp, 4
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [esi], ecx
mov dword [esi + 0x78], ebx
test eax, eax
je 0x4e62a3
cmp byte [eax], 0
je 0x4e62a3
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x90]
lea edi, [ebp + 8]
push edi
and ebx, 0x87f7f
push ebx
push eax
mov eax, dword [ecx + 0x18]
push edx
push ecx
mov dword [ebp + 8], 0
call eax
mov ebx, dword [ebp + 8]
mov edi, eax
add esp, 0x14
and ebx, 1
test edi, edi
jne 0x4e62d3
test ebx, ebx
jne 0x4e62b9
call fcn.004e4a50
mov eax, dword [esi + 0x7c]
cmp eax, 0x400
jbe 0x4e62b9
cmp eax, 0x2000
jbe 0x4e629e
mov dword [ebp - 0xc], 0x2000
jmp 0x4e62b9
cmp esi, edi
je 0x4e5fd3
cmp byte [esi], bl
je 0x4e5fd3
mov edi, dword [edx + 8]
inc edi
lea ecx, [edi + edi]
push ecx
call fcn.004dab90
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4e6292
mov eax, dword [ebp + 8]
push ebx
push edi
mov byte [ebx], 0
mov edx, dword [eax + 0x24]
push esi
push eax
call edx
mov edx, eax
add esp, 0x10
cmp byte [ebx], 0
mov dword [ebp - 4], edx
mov eax, ebx
je 0x4e61d6
lea esp, [esp]
inc eax
cmp byte [eax], 0
jne 0x4e61d0
sub eax, ebx
and eax, 0x3fffffff
cmp byte [esi], 0
mov edi, eax
mov eax, esi
je 0x4e61ec
inc eax
cmp byte [eax], 0
jne 0x4e61e6
sub eax, esi
and eax, 0x3fffffff
cmp byte [eax + esi + 1], 0
lea esi, [eax + esi + 1]
mov dword [ebp - 0x18], esi
mov ecx, esi
je 0x4e6248
cmp byte [ecx], 0
mov eax, ecx
je 0x4e6216
lea ebx, [ebx]
inc eax
cmp byte [eax], 0
jne 0x4e6210
sub eax, ecx
and eax, 0x3fffffff
lea ecx, [ecx + eax + 1]
mov eax, ecx
test ecx, ecx
je 0x4e623d
cmp byte [ecx], 0
je 0x4e6236
lea esp, [esp]
inc eax
cmp byte [eax], 0
jne 0x4e6230
sub eax, ecx
and eax, 0x3fffffff
cmp byte [ecx + eax + 1], 0
lea ecx, [ecx + eax + 1]
jne 0x4e6203
sub ecx, esi
inc ecx
mov dword [ebp - 8], ecx
test edx, edx
jne 0x4e6276
mov ecx, dword [ebp + 8]
lea eax, [edi + 8]
cmp eax, dword [ecx + 8]
jle 0x4e5fd3
mov eax, 0xa185
call fcn.0053de70
mov dword [ebp - 4], eax
test eax, eax
je 0x4e5fd3
push ebx
call fcn.004dae60
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004dae60
add esp, 4
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0xc], eax
jmp 0x4e62b9
and ebx, 1
cmp dword [ebp - 4], 0
mov dword [ebp - 0x1c], 1
mov word [esi + 0xf], 0x401
jne 0x4e62d0
lea ecx, [ebp - 0xc]
push 0xffffffffffffffff
push ecx
mov edi, esi
call fcn.004e55f0
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x4e62fd
mov edi, dword [ebp - 4]
mov ebx, dword [esi + 0x3c]
mov eax, dword [ebx]
test eax, eax
je 0x4e62eb
mov edx, dword [eax + 4]
push ebx
call edx
add esp, 4
mov dword [ebx], 0
push esi
call fcn.004dae60
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esi + 0xb4]
push 0x30
push 0
push edi
call fcn.005ff630
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov dword [edi + 0x14], eax
xor edx, edx
add esp, 0xc
test ecx, ecx
sete dl
mov eax, ecx
neg eax
sbb eax, eax
not eax
mov dword [edi + 0x18], 0x50
and eax, 0x4e5e50
mov dword [edi + 0x20], eax
mov al, byte [ebp - 0x1c]
mov dword [edi + 0x1c], edx
mov dl, byte [ebp - 0x20]
mov dword [edi + 0x24], esi
mov dword [edi + 0x10], 0x64
mov byte [esi + 6], dl
mov dword [esi + 0x84], 0x3fffffff
mov byte [esi + 0xc], al
mov byte [esi + 4], al
mov byte [esi + 0x11], al
mov byte [esi + 0xe], cl
mov byte [esi + 0xd], bl
mov byte [esi + 7], al
test al, al
jne 0x4e6374
mov dword [esi + 8], 0x2220201
mov eax, 0x50
mov word [esi + 0x74], ax
or eax, 0xffffffff
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], eax
call fcn.004e4a50
cmp dword [ebp - 0x20], 0
jne 0x4e639d
mov byte [esi + 5], 2
jmp 0x4e63a7
cmp dword [ebp - 0x14], 0
je 0x4e63a7
mov byte [esi + 5], 4
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xac], 0x4ec1f0
pop edi
mov dword [ecx], esi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret