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

Disassembly:
sub esp, 0x78
mov eax, dword [0x4e7744]
xor eax, esp
mov dword [esp + 0x74], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x88]
xor ebp, ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
movzx ebx, byte [esi + 0x2d]
inc ebx
cmp byte [esi + 0x2b], 0
mov dword [esp + 0xc], ebx
jne 0x49a062
mov ecx, dword [esi + 4]
mov eax, 3
push 0xa
sub eax, ebx
push eax
mov edx, dword [ecx]
push ebx
push ecx
mov eax, dword [edx + 0x38]
call eax
add esp, 0x10
test eax, eax
jne 0x49a462
push edi
push 0x30
lea eax, [esi + 0x34]
push 0
push eax
call fcn.004ac5e0
mov eax, dword [esi + 8]
lea edx, [esp + 0x40]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x18]
call eax
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x49a440
cmp dword [esp + 0x38], ebp
jl 0x49a382
jg 0x49a0a4
cmp dword [esp + 0x34], 0x20
jbe 0x49a382
mov eax, dword [esi + 8]
lea edx, [esp + 0x64]
push 0
push 0
push 0x20
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 8]
call eax
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x49a440
mov edx, dword [esp + 0x64]
mov edi, dword [esp + 0x6c]
bswap edx
mov eax, edx
and eax, 0xfffffffe
bswap edi
mov dword [esp + 0x54], edi
cmp eax, 0x377f0682
jne 0x49a382
lea eax, [edi - 1]
test edi, eax
jne 0x49a382
cmp edi, 0x10000
jg 0x49a382
cmp edi, 0x200
jl 0x49a382
mov eax, dword [esp + 0x70]
lea ebx, [esi + 0x4c]
mov ecx, dword [esp + 0x78]
and dl, 1
bswap eax
mov dword [esi + 0x70], eax
mov eax, dword [esp + 0x74]
push ebx
mov dword [esi + 0x54], eax
lea eax, [esp + 0x68]
push 0
push 0x18
push eax
movzx eax, dl
xor eax, 1
mov byte [esi + 0x41], dl
push eax
mov dword [esi + 0x24], edi
mov dword [esi + 0x58], ecx
call fcn.00499910
mov eax, dword [esp + 0x90]
add esp, 0x14
bswap eax
cmp dword [ebx], eax
jne 0x49a382
mov eax, dword [esp + 0x80]
bswap eax
cmp dword [esi + 0x50], eax
jne 0x49a382
mov eax, dword [esp + 0x68]
bswap eax
cmp eax, 0x2de218
je 0x49a187
push 0xeea2
call fcn.00451d30
mov edi, eax
jmp 0x49a377
lea eax, [edi + 0x8018]
push 0
lea ebx, [edi + 0x18]
push eax
mov dword [esp + 0x4c], ebx
call fcn.004155b0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x49a1af
lea edi, [eax + 7]
jmp 0x49a43c
mov ecx, dword [esp + 0x38]
add eax, 0x18
mov dword [esp + 0x48], eax
add eax, edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x24], eax
sub edi, 0x20
mov eax, ebx
cdq
sbb ecx, ebp
mov ebx, eax
mov eax, edx
push eax
push ebx
push ecx
push edi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], eax
call fcn.004aa760
mov edx, eax
mov dword [esp + 0x58], 0x7f78
xor ebx, ebx
mov dword [esp + 0x60], edx
mov dword [esp + 0x28], ebx
lea eax, [edx + 0x21]
shr eax, 0xc
mov dword [esp + 0x5c], eax
nop
mov ebp, ebx
mov ecx, edx
shl ebp, 0xc
lea eax, [ebp + 0xfde]
cmp edx, eax
cmovae ecx, eax
mov dword [esp + 0x14], ecx
test ebx, ebx
jne 0x49a21f
lea ebp, [ebx + 1]
jmp 0x49a222
add ebp, 0xffffffdf
cmp dword [esi + 0x18], ebx
jle 0x49a23d
mov eax, dword [esi + 0x20]
mov edx, dword [eax + ebx*4]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], edx
test edx, edx
je 0x49a23d
xor edi, edi
jmp 0x49a262
lea eax, [esp + 0x1c]
push eax
push ebx
push esi
call fcn.00499ce0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x49a36a
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x20]
mov edx, dword [esp + 0x24]
mov dword [eax + ebx*4], edx
cmp ebp, ecx
ja 0x49a31d
push dword [esp + 0x3c]
mov edi, dword [esi + 8]
lea eax, [ebp - 1]
push dword [esp + 0x44]
push 0
mov ebx, dword [edi]
push eax
call fcn.004aa8f0
add eax, 0x20
adc edx, 0
push edx
push eax
push dword [esp + 0x4c]
mov eax, dword [ebx + 8]
push dword [esp + 0x24]
push edi
call eax
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x49a319
push dword [esp + 0x18]
lea eax, [esp + 0x54]
push dword [esp + 0x4c]
push eax
lea eax, [esp + 0x58]
push eax
push esi
call fcn.00499a50
add esp, 0x14
test eax, eax
je 0x49a319
push dword [esp + 0x4c]
push ebp
push esi
call fcn.00499b50
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x49a319
mov eax, dword [esp + 0x50]
test eax, eax
je 0x49a30e
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x54]
mov ecx, eax
and eax, 0xff00
sar ecx, 0x10
or ecx, eax
mov dword [esi + 0x44], ebp
mov word [esi + 0x42], cx
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x50]
mov dword [esp + 0x30], eax
inc ebp
cmp ebp, dword [esp + 0x14]
jbe 0x49a274
mov ebx, dword [esp + 0x28]
mov eax, dword [esi + 0x20]
xor ecx, ecx
mov edx, dword [esp + 0x20]
test ebx, ebx
mov dword [eax + ebx*4], edx
mov eax, 0x88
cmove ecx, eax
mov eax, 0x8000
cmove eax, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x28]
add eax, ecx
push eax
lea eax, [ecx + edx]
push eax
call fcn.004ac060
add esp, 0xc
cmp ebp, dword [esp + 0x14]
jbe 0x49a36a
mov edx, dword [esp + 0x60]
inc ebx
mov dword [esp + 0x28], ebx
cmp ebx, dword [esp + 0x5c]
jbe 0x49a200
push dword [esp + 0x18]
call fcn.00415630
mov ebp, dword [esp + 0x30]
add esp, 4
test edi, edi
jne 0x49a43c
mov eax, dword [esp + 0x30]
push esi
mov dword [esi + 0x4c], ebp
mov dword [esi + 0x50], eax
call fcn.0049a5c0
mov eax, dword [esi + 0x20]
add esp, 4
mov ebx, 1
mov ebp, dword [eax]
mov dword [ebp + 0x60], 0
mov eax, dword [esi + 0x44]
mov dword [ebp + 0x80], eax
mov dword [ebp + 0x64], 0
cmp byte [esi + 0x2b], 0
je 0x49a3c0
xor edi, edi
jmp 0x49a3dc
mov ecx, dword [esi + 4]
lea eax, [ebx + 3]
push 0xa
push 1
push eax
mov edx, dword [ecx]
push ecx
mov eax, dword [edx + 0x38]
call eax
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x49a413
cmp ebx, 1
jne 0x49a3ed
mov eax, dword [esi + 0x44]
test eax, eax
je 0x49a3ed
mov dword [ebp + 0x68], eax
jmp 0x49a3f5
mov dword [ebp + ebx*4 + 0x64], 0xffffffff
cmp byte [esi + 0x2b], 0
jne 0x49a418
mov ecx, dword [esi + 4]
lea eax, [ebx + 3]
push 9
push 1
push eax
mov edx, dword [ecx]
push ecx
mov eax, dword [edx + 0x38]
call eax
add esp, 0x10
jmp 0x49a418
cmp edi, 5
jne 0x49a43c
inc ebx
cmp ebx, 5
jl 0x49a3b6
cmp dword [esi + 0x48], 0
je 0x49a43c
push dword [esi + 0x6c]
push dword [esi + 0x44]
push str.recovered__d_frames_from_WAL_file__s
push 0x11b
call fcn.00420250
add esp, 0x10
mov ebx, dword [esp + 0x10]
cmp byte [esi + 0x2b], 0
jne 0x49a45f
mov eax, dword [esi + 4]
mov edx, 3
push 9
sub edx, ebx
push edx
mov ecx, dword [eax]
push ebx
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
mov eax, edi
pop edi
mov ecx, dword [esp + 0x80]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004aa4f4
add esp, 0x78
ret