Function at 0x531800
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 0x531844
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 0x531c2c
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 0x531c0a
cmp dword [esp + 0x54], ebp
jl 0x531b4c
jg 0x531886
cmp dword [esp + 0x50], 0x20
jbe 0x531b4c
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 0x531c0a
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 0x531b4c
lea eax, [edi - 1]
test edi, eax
jne 0x531b4c
lea eax, [edi - 0x200]
cmp eax, 0xfe00
ja 0x531b4c
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.00530f80
mov eax, dword [esp + 0x84]
add esp, 0x14
bswap eax
cmp dword [ebx], eax
jne 0x531b4c
mov eax, dword [esp + 0x74]
bswap eax
cmp dword [esi + 0x50], eax
jne 0x531b4c
mov eax, dword [esp + 0x5c]
bswap eax
cmp eax, 0x2de218
je 0x53195e
push 0xf34c
call fcn.004e5440
mov ebx, eax
jmp 0x531b41
lea ebx, [edi + 0x18]
lea eax, [ebx + 0x8000]
mov dword [esp + 0x1c], ebx
push 0
push eax
call fcn.00491960
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x531986
lea ebx, [eax + 7]
jmp 0x531c06
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.0041e9e0
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 0x5319d8
mov dword [esp + 0x10], edx
test ebp, ebp
jne 0x5319e0
xor edi, edi
jmp 0x5319ec
lea edi, [ebp - 1]
shl edi, 0xc
add edi, 0xfde
lea eax, [esp + 0x14]
push eax
push ebp
push esi
call fcn.00531460
add esp, 0xc
mov ebx, eax
cmp dword [esp + 0x14], 0
je 0x531b34
mov eax, dword [esi + 0x20]
inc edi
mov ecx, dword [esp + 0x20]
mov dword [eax + ebp*4], ecx
cmp edi, dword [esp + 0x10]
ja 0x531ad5
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.0041ebf0
add eax, 0x20
adc edx, 0
push edx
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esi + 8]
call fcn.00501460
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x531ad1
push dword [esp + 0x18]
lea eax, [esp + 0x38]
push dword [esp + 0x30]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.005310d0
add esp, 0x14
test eax, eax
je 0x531ad1
push dword [esp + 0x30]
push edi
push esi
call fcn.005312c0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x531ad1
mov eax, dword [esp + 0x34]
test eax, eax
je 0x531ac4
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 0x531a30
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 0x531b34
mov edx, dword [esp + 0x44]
inc ebp
mov dword [esp + 0x24], ebp
cmp ebp, dword [esp + 0x40]
jbe 0x5319c2
push dword [esp + 0x18]
call fcn.00491ac0
mov ebp, dword [esp + 0x4c]
add esp, 4
test ebx, ebx
jne 0x531c06
mov eax, dword [esp + 0x4c]
push esi
mov dword [esi + 0x4c], ebp
mov dword [esi + 0x50], eax
call fcn.00531d50
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 0x531b8a
xor ebx, ebx
jmp 0x531ba6
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 0x531bdd
cmp edi, 1
jne 0x531bb7
mov eax, dword [esi + 0x44]
test eax, eax
je 0x531bb7
mov dword [ebp + 0x68], eax
jmp 0x531bbf
mov dword [ebp + edi*4 + 0x64], 0xffffffff
cmp byte [esi + 0x2b], 0
jne 0x531be2
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 0x531be2
cmp ebx, 5
jne 0x531c06
inc edi
cmp edi, 5
jl 0x531b80
cmp dword [esi + 0x48], 0
je 0x531c06
push dword [esi + 0x6c]
push dword [esi + 0x44]
push str.recovered__d_frames_from_WAL_file__s
push 0x11b
call fcn.0049bde0
add esp, 0x10
mov edi, dword [esp + 0x7c]
cmp byte [esi + 0x2b], 0
jne 0x531c29
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