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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x78
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
movzx ebx, byte [esi + 0x2d]
inc ebx
cmp byte [esi + 0x2b], 0
mov dword [esp + 0x10], ebx
jne 0x47c2b9
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 0x47c7c1
push 0x30
lea eax, [esi + 0x34]
push 0
push eax
call fcn.005479f0
mov eax, dword [esi + 8]
lea edx, [esp + 0x6c]
add esp, 0xc
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov edi, eax
add esp, 8
test edi, edi
jne 0x47c7a0
cmp dword [esp + 0x64], ebp
jl 0x47c6d0
jg 0x47c2fd
cmp dword [esp + 0x60], 0x20
jbe 0x47c6d0
mov eax, dword [esi + 8]
lea edx, [esp + 0x68]
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 0x47c7a0
mov ecx, dword [esp + 0x68]
mov ebx, dword [esp + 0x70]
bswap ecx
mov eax, ecx
and eax, 0xfffffffe
bswap ebx
mov dword [esp + 0x54], ebx
cmp eax, 0x377f0682
jne 0x47c6d0
lea eax, [ebx - 1]
test ebx, eax
jne 0x47c6d0
cmp ebx, 0x10000
jg 0x47c6d0
cmp ebx, 0x200
jl 0x47c6d0
mov eax, dword [esp + 0x74]
and cl, 1
bswap eax
mov byte [esi + 0x41], cl
mov edi, ebp
mov ecx, dword [esp + 0x7c]
mov edx, edi
mov dword [esi + 0x70], eax
mov eax, dword [esp + 0x78]
mov dword [esi + 0x58], ecx
lea ecx, [esp + 0x68]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x54], eax
jne 0x47c3b0
nop dword [eax]
mov eax, dword [ecx]
add eax, edi
add edx, eax
mov eax, dword [ecx + 4]
add eax, edx
add ecx, 8
add edi, eax
lea eax, [esp + 0x80]
cmp ecx, eax
jb 0x47c390
jmp 0x47c3cf
mov eax, dword [ecx]
bswap eax
add eax, edi
add edx, eax
mov eax, dword [ecx + 4]
bswap eax
add eax, edx
add ecx, 8
add edi, eax
lea eax, [esp + 0x80]
cmp ecx, eax
jb 0x47c3b0
mov eax, dword [esp + 0x80]
bswap eax
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], edi
cmp edx, eax
jne 0x47c6d0
mov eax, dword [esp + 0x84]
bswap eax
cmp edi, eax
jne 0x47c6d0
mov eax, dword [esp + 0x6c]
bswap eax
cmp eax, 0x2de218
je 0x47c42c
push 0x59807c
push 0xf330
push str.cannot_open_file
push str._s_at_line__d_of___.10s_
push 0xe
call fcn.0046cde0
add esp, 0x14
mov edi, 0xe
jmp 0x47c79c
lea ebp, [ebx + 0x18]
mov dword [esp + 0x44], ebp
call fcn.005116c0
test eax, eax
jne 0x47c712
lea eax, [ebx + 0x8018]
push 0
push eax
call fcn.00469f50
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x47c712
mov edi, dword [esp + 0x60]
add eax, 0x18
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x48], eax
add eax, ebx
mov dword [esp + 0x30], eax
sub edi, 0x20
mov eax, ebp
cdq
sbb ecx, 0
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.0056f300
mov edx, eax
xor ebx, ebx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x28], ebx
lea eax, [edx + 0x21]
shr eax, 0xc
mov dword [esp + 0x58], eax
mov ebp, ebx
mov ecx, edx
shl ebp, 0xc
lea eax, [ebp + 0xfde]
cmp edx, eax
cmovae ecx, eax
mov dword [esp + 0x24], ecx
test ebx, ebx
jne 0x47c4c5
lea ebp, [ebx + 1]
jmp 0x47c4c8
add ebp, 0xffffffdf
cmp dword [esi + 0x18], ebx
jle 0x47c4f8
lea eax, [esi + 0x20]
mov dword [esp + 0x14], eax
lea edx, [ebx*4]
mov eax, dword [eax]
mov dword [esp + 0x18], edx
mov eax, dword [edx + eax]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], eax
test eax, eax
je 0x47c50a
mov eax, dword [esp + 0x14]
xor edi, edi
jmp 0x47c539
lea eax, [ebx*4]
mov dword [esp + 0x18], eax
lea eax, [esi + 0x20]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x2c]
mov edx, ebx
push eax
mov ecx, esi
call fcn.0047bc70
mov ecx, dword [esp + 0x30]
mov edi, eax
mov edx, dword [esp + 0x1c]
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
cmp dword [esp + 0x1c], 0
je 0x47c665
mov eax, dword [eax]
mov ebx, dword [esp + 0x30]
mov dword [edx + eax], ebx
mov ebx, dword [esp + 0x28]
cmp ebp, ecx
ja 0x47c60f
nop dword [eax]
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.005461a0
add eax, 0x20
adc edx, 0
push edx
push eax
push dword [esp + 0x4c]
mov eax, dword [ebx + 8]
push dword [esp + 0x2c]
push edi
call eax
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x47c607
push dword [esp + 0x20]
lea eax, [esp + 0x54]
mov ecx, esi
push dword [esp + 0x4c]
lea edx, [esp + 0x54]
push eax
call fcn.0047bf40
add esp, 0xc
test eax, eax
je 0x47c607
push dword [esp + 0x4c]
mov edx, ebp
mov ecx, esi
call fcn.0047c130
mov edi, eax
add esp, 4
test edi, edi
jne 0x47c607
mov eax, dword [esp + 0x50]
test eax, eax
je 0x47c5fc
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 + 0x34], eax
mov eax, dword [esi + 0x50]
mov dword [esp + 0x38], eax
inc ebp
cmp ebp, dword [esp + 0x24]
jbe 0x47c560
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [edx + eax], ecx
xor ecx, ecx
test ebx, ebx
mov eax, 0x88
mov edx, 0x7f78
cmove ecx, eax
mov eax, 0x8000
cmove eax, edx
push eax
mov eax, dword [esp + 0x34]
add eax, ecx
push eax
mov eax, dword [esp + 0x24]
add eax, ecx
push eax
call fcn.00547470
add esp, 0xc
cmp ebp, dword [esp + 0x24]
jbe 0x47c665
mov edx, dword [esp + 0x5c]
inc ebx
mov dword [esp + 0x28], ebx
cmp ebx, dword [esp + 0x58]
jbe 0x47c4a6
cmp dword [0x5b3c20], 0
je 0x47c6b7
mov eax, dword [0x5c26a0]
test eax, eax
je 0x47c681
push eax
call dword [0x5b3c70]
add esp, 4
mov ebx, dword [esp + 0x20]
push ebx
call dword [0x5b3c4c]
sub dword [0x5c24a8], eax
add esp, 4
dec dword [0x5c24cc]
push ebx
call dword [0x5b3c44]
mov eax, dword [0x5c26a0]
add esp, 4
test eax, eax
je 0x47c6c4
push eax
call dword [0x5b3c78]
jmp 0x47c6c1
push dword [esp + 0x20]
call dword [0x5b3c44]
add esp, 4
test edi, edi
jne 0x47c79c
mov ebp, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov ecx, esi
mov dword [esi + 0x4c], ebp
mov dword [esi + 0x50], eax
call fcn.0047bdb0
mov eax, dword [esi + 0x20]
mov ebx, 1
mov ecx, dword [eax]
add ecx, 0x60
mov dword [esp + 0x28], ecx
mov dword [ecx], 0
mov eax, dword [esi + 0x44]
mov dword [ecx + 0x20], eax
mov dword [ecx + 4], 0
cmp byte [esi + 0x2b], 0
lea ebp, [ebx + 3]
je 0x47c71c
xor edi, edi
jmp 0x47c739
mov edi, 7
jmp 0x47c79c
mov ecx, dword [esi + 4]
push 0xa
push 1
push ebp
mov eax, dword [ecx]
push ecx
mov eax, dword [eax + 0x38]
call eax
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x47c76f
mov ecx, dword [esp + 0x28]
cmp ebx, 1
jne 0x47c74c
cmp dword [esi + 0x44], 0
je 0x47c74c
mov eax, dword [esi + 0x44]
mov dword [ecx + 8], eax
jmp 0x47c754
mov dword [ecx + ebx*4 + 4], 0xffffffff
cmp byte [esi + 0x2b], 0
jne 0x47c778
mov eax, dword [esi + 4]
push 9
push 1
push ebp
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
jmp 0x47c774
cmp edi, 5
jne 0x47c79c
mov ecx, dword [esp + 0x28]
inc ebx
cmp ebx, 5
jl 0x47c705
cmp dword [esi + 0x48], 0
je 0x47c79c
push dword [esi + 0x6c]
push dword [esi + 0x44]
push str.recovered__d_frames_from_WAL_file__s
push 0x11b
call fcn.0046cde0
add esp, 0x10
mov ebx, dword [esp + 0x10]
cmp byte [esi + 0x2b], 0
jne 0x47c7bf
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
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret