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

Disassembly:
sub esp, 0x68
push ebp
push esi
mov esi, dword [esp + 0x74]
xor ebp, ebp
push edi
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
movzx edi, byte [esi + 0x2d]
inc edi
cmp byte [esi + 0x2b], 0
mov dword [esp + 0x78], edi
jne 0x54cc84
mov ecx, dword [esi + 4]
mov eax, 3
push 0xa
sub eax, edi
push eax
mov edx, dword [ecx]
push edi
push ecx
mov eax, dword [edx + 0x38]
call eax
add esp, 0x10
test eax, eax
jne 0x54d06c
push ebx
push 0x30
lea eax, [esi + 0x34]
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 8]
lea edx, [esp + 0x5c]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x18]
call eax
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x54d04a
cmp dword [esp + 0x54], ebp
jl 0x54cf8c
jg 0x54ccc6
cmp dword [esp + 0x50], 0x20
jbe 0x54cf8c
mov eax, dword [esi + 8]
lea edx, [esp + 0x58]
push 0
push 0
push 0x20
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 8]
call eax
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x54d04a
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x60]
bswap ecx
mov eax, ecx
and eax, 0xfffffffe
bswap edi
mov dword [esp + 0x38], edi
cmp eax, 0x377f0682
jne 0x54cf8c
lea eax, [edi - 1]
test edi, eax
jne 0x54cf8c
lea eax, [edi - 0x200]
cmp eax, 0xfe00
ja 0x54cf8c
mov eax, dword [esp + 0x64]
lea ebx, [esi + 0x4c]
bswap eax
mov dword [esi + 0x70], eax
and cl, 1
mov eax, dword [esp + 0x68]
mov dword [esi + 0x54], eax
mov eax, dword [esp + 0x6c]
push ebx
mov dword [esi + 0x58], eax
lea eax, [esp + 0x5c]
push 0
push 0x18
push eax
mov eax, ebp
mov byte [esi + 0x41], cl
sete al
mov dword [esi + 0x24], edi
push eax
call fcn.0054c3c0
mov eax, dword [esp + 0x84]
add esp, 0x14
bswap eax
cmp dword [ebx], eax
jne 0x54cf8c
mov eax, dword [esp + 0x74]
bswap eax
cmp dword [esi + 0x50], eax
jne 0x54cf8c
mov eax, dword [esp + 0x5c]
bswap eax
cmp eax, 0x2de218
je 0x54cd9e
push 0xf34c
call fcn.00500880
mov ebx, eax
jmp 0x54cf81
lea ebx, [edi + 0x18]
lea eax, [ebx + 0x8000]
mov dword [esp + 0x1c], ebx
push 0
push eax
call fcn.004acda0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x54cdc6
lea ebx, [eax + 7]
jmp 0x54d046
mov ecx, dword [esp + 0x54]
add eax, 0x18
mov dword [esp + 0x2c], eax
add eax, edi
mov edi, dword [esp + 0x50]
mov dword [esp + 0x20], eax
sub edi, 0x20
mov eax, ebx
cdq
sbb ecx, ebp
push edx
push eax
push ecx
push edi
call fcn.00412350
mov edx, eax
xor ebp, ebp
mov dword [esp + 0x44], edx
mov dword [esp + 0x24], ebp
lea eax, [edx + 0x21]
shr eax, 0xc
mov dword [esp + 0x40], eax
mov eax, ebp
shl eax, 0xc
add eax, 0xfde
mov dword [esp + 0x10], eax
cmp edx, eax
jae 0x54ce18
mov dword [esp + 0x10], edx
test ebp, ebp
jne 0x54ce20
xor edi, edi
jmp 0x54ce2c
lea edi, [ebp - 1]
shl edi, 0xc
add edi, 0xfde
lea eax, [esp + 0x14]
push eax
push ebp
push esi
call fcn.0054c8a0
add esp, 0xc
mov ebx, eax
cmp dword [esp + 0x14], 0
je 0x54cf74
mov eax, dword [esi + 0x20]
inc edi
mov ecx, dword [esp + 0x20]
mov dword [eax + ebp*4], ecx
cmp edi, dword [esp + 0x10]
ja 0x54cf15
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
cdq
mov dword [esp + 0x28], eax
mov eax, edx
mov dword [esp + 0x3c], eax
push eax
push dword [esp + 0x2c]
lea ecx, [edi - 1]
push 0
push ecx
call fcn.00412400
add eax, 0x20
adc edx, 0
push edx
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esi + 8]
call fcn.0051c8a0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x54cf11
push dword [esp + 0x18]
lea eax, [esp + 0x38]
push dword [esp + 0x30]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.0054c510
add esp, 0x14
test eax, eax
je 0x54cf11
push dword [esp + 0x30]
push edi
push esi
call fcn.0054c700
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x54cf11
mov eax, dword [esp + 0x34]
test eax, eax
je 0x54cf04
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x38]
mov ecx, eax
and eax, 0xff00
sar ecx, 0x10
or ecx, eax
mov dword [esi + 0x44], edi
mov word [esi + 0x42], cx
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x50]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x3c]
inc edi
cmp edi, ebp
jbe 0x54ce70
mov ebp, dword [esp + 0x24]
mov eax, dword [esi + 0x20]
mov edx, ebp
mov ecx, dword [esp + 0x14]
neg edx
sbb edx, edx
mov dword [eax + ebp*4], ecx
and edx, 0xffffff78
add edx, 0x88
mov eax, edx
shr eax, 2
lea ecx, [eax*4]
mov eax, 0x8000
sub eax, edx
push eax
mov eax, dword [esp + 0x24]
add eax, ecx
push eax
mov eax, dword [esp + 0x1c]
add eax, ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp edi, dword [esp + 0x10]
jbe 0x54cf74
mov edx, dword [esp + 0x44]
inc ebp
mov dword [esp + 0x24], ebp
cmp ebp, dword [esp + 0x40]
jbe 0x54ce02
push dword [esp + 0x18]
call fcn.004acf00
mov ebp, dword [esp + 0x4c]
add esp, 4
test ebx, ebx
jne 0x54d046
mov eax, dword [esp + 0x4c]
push esi
mov dword [esi + 0x4c], ebp
mov dword [esi + 0x50], eax
call fcn.0054d190
mov eax, dword [esi + 0x20]
add esp, 4
mov edi, 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 0x54cfca
xor ebx, ebx
jmp 0x54cfe6
mov ecx, dword [esi + 4]
lea eax, [edi + 3]
push 0xa
push 1
push eax
mov edx, dword [ecx]
push ecx
mov eax, dword [edx + 0x38]
call eax
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x54d01d
cmp edi, 1
jne 0x54cff7
mov eax, dword [esi + 0x44]
test eax, eax
je 0x54cff7
mov dword [ebp + 0x68], eax
jmp 0x54cfff
mov dword [ebp + edi*4 + 0x64], 0xffffffff
cmp byte [esi + 0x2b], 0
jne 0x54d022
mov ecx, dword [esi + 4]
lea eax, [edi + 3]
push 9
push 1
push eax
mov edx, dword [ecx]
push ecx
mov eax, dword [edx + 0x38]
call eax
add esp, 0x10
jmp 0x54d022
cmp ebx, 5
jne 0x54d046
inc edi
cmp edi, 5
jl 0x54cfc0
cmp dword [esi + 0x48], 0
je 0x54d046
push dword [esi + 0x6c]
push dword [esi + 0x44]
push str.recovered__d_frames_from_WAL_file__s
push 0x11b
call fcn.004b7220
add esp, 0x10
mov edi, dword [esp + 0x7c]
cmp byte [esi + 0x2b], 0
jne 0x54d069
mov eax, dword [esi + 4]
mov edx, 3
push 9
sub edx, edi
push edx
mov ecx, dword [eax]
push edi
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x68
ret