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

Disassembly:
sub esp, 0x5c
mov eax, dword [0x50a0b0]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
mov esi, dword [esp + 0x68]
mov ebx, 8
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
movzx edx, byte [esi + 0x2d]
inc edx
sub ebx, edx
mov dword [esp + 0x3c], edx
cmp byte [esi + 0x2b], 0
mov dword [esp + 0x38], ebx
jne 0x48c8b8
mov eax, dword [esi + 4]
push 0xa
push ebx
push edx
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
test eax, eax
jne 0x48ccb7
push ebp
push 0x30
lea eax, [esi + 0x34]
push 0
push eax
call fcn.004c2200
mov eax, dword [esi + 8]
lea edx, [esp + 0x28]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x18]
call eax
mov ebp, eax
add esp, 0x14
test ebp, ebp
jne 0x48cc96
push edi
cmp dword [esp + 0x24], eax
jl 0x48cc23
jg 0x48c8fb
cmp dword [esp + 0x20], 0x20
jbe 0x48cc23
mov eax, dword [esi + 8]
lea edx, [esp + 0x48]
push 0
push 0
push 0x20
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 8]
call eax
mov ebp, eax
add esp, 0x14
test ebp, ebp
jne 0x48cc95
movzx ecx, byte [esp + 0x48]
movzx eax, byte [esp + 0x49]
movzx ebx, byte [esp + 0x50]
shl ecx, 8
or ecx, eax
shl ebx, 8
movzx eax, byte [esp + 0x4a]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x4b]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x51]
or ebx, eax
movzx eax, byte [esp + 0x52]
shl ebx, 8
or ebx, eax
movzx eax, byte [esp + 0x53]
shl ebx, 8
or ebx, eax
mov eax, ecx
and eax, 0xfffffffe
mov dword [esp + 0x34], ebx
cmp eax, 0x377f0682
jne 0x48cc23
lea eax, [ebx - 1]
test ebx, eax
jne 0x48cc23
cmp ebx, 0x10000
jg 0x48cc23
cmp ebx, 0x200
jl 0x48cc23
and cl, 1
mov dword [esi + 0x24], ebx
lea eax, [esp + 0x54]
mov dword [esp + 0x14], ecx
push eax
mov byte [esi + 0x41], cl
call fcn.0045c460
mov dword [esi + 0x68], eax
lea edi, [esi + 0x4c]
mov eax, dword [esp + 0x5c]
mov dword [esi + 0x54], eax
mov eax, dword [esp + 0x60]
push edi
mov dword [esi + 0x58], eax
lea eax, [esp + 0x50]
push ebp
push 0x18
push eax
mov eax, dword [esp + 0x28]
movzx eax, al
xor eax, 1
push eax
call fcn.0048c2e0
lea eax, [esp + 0x78]
push eax
call fcn.0045c460
add esp, 0x1c
cmp dword [edi], eax
jne 0x48cc23
lea eax, [esp + 0x64]
push eax
call fcn.0045c460
add esp, 4
cmp dword [esi + 0x50], eax
jne 0x48cc23
lea eax, [esp + 0x4c]
push eax
call fcn.0045c460
add esp, 4
cmp eax, 0x2de218
je 0x48ca2f
push 0xc38b
call fcn.0044e320
mov ebp, eax
jmp 0x48cc1c
lea eax, [ebx + 0x18]
mov dword [esp + 0x28], eax
mov eax, ebx
cdq
add eax, 0x18
adc edx, 0
push edx
push eax
call fcn.004184d0
mov edi, eax
add esp, 8
test edi, edi
jne 0x48ca57
lea ebp, [eax + 7]
jmp 0x48cc95
mov eax, dword [esp + 0x28]
xor ebx, ebx
cdq
mov dword [esp + 0x38], eax
mov ecx, edx
add eax, 0x20
mov dword [esp + 0x18], 0x20
mov dword [esp + 0x14], ebx
adc ecx, ebx
mov dword [esp + 0x3c], edx
cmp ecx, dword [esp + 0x24]
jg 0x48cc16
jl 0x48ca8f
cmp eax, dword [esp + 0x20]
ja 0x48cc16
xor edx, edx
mov eax, dword [esi + 8]
inc ebx
push edx
push dword [esp + 0x1c]
mov dword [esp + 0x18], ebx
push dword [esp + 0x30]
mov ecx, dword [eax]
push edi
push eax
mov eax, dword [ecx + 8]
call eax
mov ebp, eax
add esp, 0x14
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x48cc16
mov eax, dword [esi + 0x54]
cmp eax, dword [edi + 8]
jne 0x48cc16
mov eax, dword [esi + 0x58]
cmp eax, dword [edi + 0xc]
jne 0x48cc16
movzx ebp, byte [edi]
movzx eax, byte [edi + 1]
shl ebp, 8
or ebp, eax
movzx eax, byte [edi + 2]
shl ebp, 8
or ebp, eax
movzx eax, byte [edi + 3]
shl ebp, 8
or ebp, eax
je 0x48cc12
lea eax, [esi + 0x4c]
xor ebx, ebx
cmp byte [esi + 0x41], bl
push eax
push eax
push 8
sete bl
push edi
push ebx
call fcn.0048c2e0
lea eax, [esi + 0x4c]
push eax
push eax
push dword [esi + 0x24]
lea eax, [edi + 0x18]
push eax
push ebx
call fcn.0048c2e0
movzx ecx, byte [edi + 0x10]
add esp, 0x28
movzx eax, byte [edi + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x13]
shl ecx, 8
or ecx, eax
cmp dword [esi + 0x4c], ecx
jne 0x48cc12
movzx ecx, byte [edi + 0x14]
movzx eax, byte [edi + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x17]
shl ecx, 8
or ecx, eax
cmp dword [esi + 0x50], ecx
jne 0x48cc12
movzx ebx, byte [edi + 4]
movzx eax, byte [edi + 5]
shl ebx, 8
or ebx, eax
movzx eax, byte [edi + 6]
shl ebx, 8
or ebx, eax
movzx eax, byte [edi + 7]
push ebp
push dword [esp + 0x14]
shl ebx, 8
push esi
or ebx, eax
call fcn.0048c440
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x48cc16
test ebx, ebx
je 0x48cbd6
mov eax, dword [esp + 0x10]
mov dword [esi + 0x44], eax
mov eax, dword [esp + 0x34]
mov ecx, eax
and eax, 0xff00
sar ecx, 0x10
or ecx, eax
mov dword [esi + 0x48], ebx
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
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
add eax, ecx
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x3c]
adc edx, ebx
add ecx, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
adc ebx, edx
cmp ebx, dword [esp + 0x24]
mov ebx, dword [esp + 0x10]
jl 0x48ca91
jg 0x48cc16
cmp ecx, dword [esp + 0x20]
jbe 0x48ca91
jmp 0x48cc16
mov ebp, dword [esp + 0x1c]
push edi
call fcn.00418550
add esp, 4
test ebp, ebp
jne 0x48cc95
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x4c], eax
mov eax, dword [esp + 0x30]
push esi
mov dword [esi + 0x50], eax
call fcn.0048ce10
mov eax, dword [esi + 0x20]
add esp, 4
mov ecx, 4
mov eax, dword [eax]
mov dword [eax + 0x60], 0
lea edx, [eax + 0x68]
mov dword [eax + 0x64], 0
mov eax, edx
jmp 0x48cc60
mov dword [eax], 0xffffffff
lea eax, [eax + 4]
sub ecx, 1
jne 0x48cc60
mov eax, dword [esi + 0x44]
test eax, eax
je 0x48cc77
mov dword [edx], eax
cmp dword [esi + 0x48], 0
je 0x48cc95
push dword [esi + 0x64]
push dword [esi + 0x44]
push str.recovered__d_frames_from_WAL_file__s
push 0x11b
call fcn.0041e040
add esp, 0x10
pop edi
cmp byte [esi + 0x2b], 0
jne 0x48ccb4
mov eax, dword [esi + 4]
push 9
push dword [esp + 0x40]
mov ecx, dword [eax]
push dword [esp + 0x48]
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0x60]
pop esi
pop ebx
xor ecx, esp
call fcn.004bf929
add esp, 0x5c
ret