Function at 0x538e90
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 0x538ed4
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 0x5392bc
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 0x53929a
cmp dword [esp + 0x54], ebp
jl 0x5391dc
jg 0x538f16
cmp dword [esp + 0x50], 0x20
jbe 0x5391dc
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 0x53929a
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 0x5391dc
lea eax, [edi - 1]
test edi, eax
jne 0x5391dc
lea eax, [edi - 0x200]
cmp eax, 0xfe00
ja 0x5391dc
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.00538610
mov eax, dword [esp + 0x84]
add esp, 0x14
bswap eax
cmp dword [ebx], eax
jne 0x5391dc
mov eax, dword [esp + 0x74]
bswap eax
cmp dword [esi + 0x50], eax
jne 0x5391dc
mov eax, dword [esp + 0x5c]
bswap eax
cmp eax, 0x2de218
je 0x538fee
push 0xf34c
call fcn.004ecad0
mov ebx, eax
jmp 0x5391d1
lea ebx, [edi + 0x18]
lea eax, [ebx + 0x8000]
mov dword [esp + 0x1c], ebx
push 0
push eax
call fcn.00498ff0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x539016
lea ebx, [eax + 7]
jmp 0x539296
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.00415280
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 0x539068
mov dword [esp + 0x10], edx
test ebp, ebp
jne 0x539070
xor edi, edi
jmp 0x53907c
lea edi, [ebp - 1]
shl edi, 0xc
add edi, 0xfde
lea eax, [esp + 0x14]
push eax
push ebp
push esi
call fcn.00538af0
add esp, 0xc
mov ebx, eax
cmp dword [esp + 0x14], 0
je 0x5391c4
mov eax, dword [esi + 0x20]
inc edi
mov ecx, dword [esp + 0x20]
mov dword [eax + ebp*4], ecx
cmp edi, dword [esp + 0x10]
ja 0x539165
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.004153e0
add eax, 0x20
adc edx, 0
push edx
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esi + 8]
call fcn.00508af0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x539161
push dword [esp + 0x18]
lea eax, [esp + 0x38]
push dword [esp + 0x30]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.00538760
add esp, 0x14
test eax, eax
je 0x539161
push dword [esp + 0x30]
push edi
push esi
call fcn.00538950
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x539161
mov eax, dword [esp + 0x34]
test eax, eax
je 0x539154
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 0x5390c0
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 0x5391c4
mov edx, dword [esp + 0x44]
inc ebp
mov dword [esp + 0x24], ebp
cmp ebp, dword [esp + 0x40]
jbe 0x539052
push dword [esp + 0x18]
call fcn.00499150
mov ebp, dword [esp + 0x4c]
add esp, 4
test ebx, ebx
jne 0x539296
mov eax, dword [esp + 0x4c]
push esi
mov dword [esi + 0x4c], ebp
mov dword [esi + 0x50], eax
call fcn.005393e0
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 0x53921a
xor ebx, ebx
jmp 0x539236
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 0x53926d
cmp edi, 1
jne 0x539247
mov eax, dword [esi + 0x44]
test eax, eax
je 0x539247
mov dword [ebp + 0x68], eax
jmp 0x53924f
mov dword [ebp + edi*4 + 0x64], 0xffffffff
cmp byte [esi + 0x2b], 0
jne 0x539272
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 0x539272
cmp ebx, 5
jne 0x539296
inc edi
cmp edi, 5
jl 0x539210
cmp dword [esi + 0x48], 0
je 0x539296
push dword [esi + 0x6c]
push dword [esi + 0x44]
push str.recovered__d_frames_from_WAL_file__s
push 0x11b
call fcn.004a3470
add esp, 0x10
mov edi, dword [esp + 0x7c]
cmp byte [esi + 0x2b], 0
jne 0x5392b9
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