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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x370
mov eax, dword [0xa0b130]
xor eax, esp
mov dword [esp + 0x36c], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [esp + 8], esi
push 0
push 8
lea ecx, [esp + 0x3c]
mov dword [esp + 0x60], edi
push ecx
lea ecx, [edi + 0xc]
mov dword [esp + 0x18], 0
call fcn.00414e2f
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x6982a4
mov dword [esi], ecx
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x36c]
xor ecx, esp
call fcn.004087b5
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x140]
mov dword [esp + 0x134], 0
mov dword [esp + 0x130], eax
lea ecx, [edi + 0xc]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x13c], 0x40
push eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x54], 0
call fcn.004019dd
mov dl, byte [esp + 0x18]
mov al, dl
not al
test al, 1
je 0x6988c0
mov esi, dword [esp + 0x60]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x60], ecx
cmp ecx, 3
ja case.default.0x69832c
jmp dword [ecx*4 + 0x698b70]
cmp eax, 0x18
ja case.0x698343.1
movzx eax, byte [eax + 0x698b94]
jmp dword [eax*4 + 0x698b80]
mov ecx, edi
call fcn.0069e870
test al, al
je 0x698464
mov ecx, dword [esp + 8]
lea eax, [esp + 0x40]
push eax
push ecx
mov ecx, edi
mov word [esp + 0x50], 0x103
mov dword [esp + 0x48], str.Malformed_block
call fcn.0067bc20
test byte [esp + 0x18], 1
jmp 0x698b13
lea eax, [esp + 0x50]
push eax
lea ecx, [edi + 0xc]
call fcn.0040ad2b
mov eax, dword [esp + 0x50]
test eax, eax
je 0x698464
mov ecx, dword [esp + 8]
test byte [esp + 0x18], 1
mov dword [esp + 0x50], 0
mov dword [ecx], eax
jmp 0x698b13
cmp dword [edi + 0x128], 0
je 0x6983c4
mov ecx, edi
call fcn.0067ada0
mov ecx, dword [edi + 0xf4]
mov eax, dword [edi + 0xf0]
test ecx, ecx
jne 0x6983d8
test eax, eax
je 0x6983fd
lea edx, [esp + 0x1c]
push edx
push ecx
push eax
lea eax, [esp + 0x84]
mov ecx, edi
push eax
call fcn.0069cd50
mov eax, dword [esp + 0x78]
test eax, eax
jne 0x69841f
mov byte [edi + 0xe9], 1
push dword [esp + 0x3c]
lea eax, [esp + 0x80]
mov byte [edi + 0xe8], 1
push eax
mov ecx, edi
call fcn.0068aac0
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x698464
mov ecx, dword [esp + 8]
test byte [esp + 0x18], 1
mov dword [ecx], eax
jmp 0x698b13
lea eax, [esp + 0x80]
mov ecx, edi
push eax
call fcn.00698e40
mov eax, dword [esp + 0x80]
test eax, eax
jne 0x69841f
jmp 0x698464
lea eax, [esp + 0x34]
push eax
lea ecx, [edi + 0xc]
call fcn.0040ad2b
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x6988fa
test byte [esp + 0x18], 1
je 0x6988a1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x6988a1
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x6988a1
push 0
lea ecx, [esp + 0x134]
mov dword [esp + 0x138], 0
push ecx
push eax
lea eax, [esp + 0x38]
push eax
lea ecx, [edi + 0xc]
call fcn.00409b56
mov al, byte [esp + 0x30]
not al
test al, 1
je 0x698a63
mov eax, dword [esp + 0x2c]
dec eax
cmp eax, 0x10
ja case.0x6984cc.2
movzx eax, byte [eax + 0x698bc8]
jmp dword [eax*4 + 0x698bb0]
mov eax, dword [esp + 0x130]
sub esp, 8
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x13c]
mov dword [ecx + 4], eax
lea eax, [esp + 0x70]
push eax
mov ecx, edi
call fcn.0069d570
mov ecx, eax
mov eax, dword [esp + 0xc]
test byte [ecx + 4], 1
je 0x698514
mov edi, dword [ecx]
or eax, 8
mov dword [ecx], 0
lea ecx, [esp + 0x5c]
jmp 0x698522
or eax, 0x30
lea ecx, [esp + 0x84]
xor esi, esi
xor edi, edi
mov dword [esp + 0xc], eax
mov dword [ecx], 0
test al, 0x20
je 0x69854c
mov ecx, dword [esp + 0x84]
and eax, 0xffffffdf
mov dword [esp + 0xc], eax
test ecx, ecx
je 0x69854c
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0xc]
test al, 0x10
je 0x698567
and eax, 0xffffffef
mov dword [esp + 0xc], eax
test esi, esi
je 0x698567
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov eax, dword [esp + 0xc]
test al, 8
je 0x698580
mov ecx, dword [esp + 0x5c]
and eax, 0xfffffff7
mov dword [esp + 0xc], eax
test ecx, ecx
je 0x698580
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [esp + 0x6c], 1
je 0x698595
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x698595
mov eax, dword [ecx]
push 1
call dword [eax]
test edi, edi
je case.0x6984cc.2
mov ecx, dword [esp + 8]
mov dword [ecx], edi
test byte [esp + 0x30], 1
je 0x6985b8
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x6985b8
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [esp + 0x18], 1
jmp 0x698b13
lea eax, [esp + 0xac]
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa0], eax
lea eax, [esp + 0xa0]
push eax
mov eax, dword [esp + 0x134]
push 0
sub esp, 8
mov dword [esp + 0xb8], 0x80
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x144]
mov dword [ecx + 4], eax
call fcn.006710c0
add esp, 0x10
test al, al
jne 0x698912
mov ecx, dword [esp + 0xa4]
cmp ecx, dword [esp + 0xa8]
jb 0x698647
push 1
push 0
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0xac]
call fcn.00405e1b
mov ecx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa0]
mov byte [ecx + eax], 0
mov edx, dword [esp + 0xa0]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [esp + 0x3c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x698662
sub ecx, dword [esp + 0x3c]
push ecx
push edx
lea ecx, [edi + 0x118]
call fcn.00408698
mov eax, dword [esp + 0xa0]
lea ecx, [esp + 0xac]
cmp eax, ecx
je case.0x6984cc.2
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp case.0x6984cc.2
mov eax, dword [esp + 0x134]
cmp eax, 5
jne 0x6989ae
mov ecx, edi
call fcn.006804c0
mov edx, dword [esp + 0x130]
mov ecx, dword [esp + 0x134]
lea edi, [eax + 0x10]
lea ecx, [edx + ecx*8]
cmp edx, ecx
je case.0x6984cc.2
mov eax, dword [edx]
lea edi, [edi + 4]
add edx, 8
mov dword [edi - 4], eax
cmp edx, ecx
jne 0x6986d2
jmp case.0x6984cc.2
cmp dword [esp + 0x134], 1
jb 0x698a19
mov eax, dword [esp + 0x130]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add ecx, 0xffffffff
mov dword [edi + 0xf0], ecx
adc eax, 0xffffffff
mov dword [edi + 0xf4], eax
jmp case.0x6984cc.2
mov eax, dword [esp + 0x130]
sub esp, 8
mov ecx, esp
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [ecx], eax
mov eax, dword [esp + 0x13c]
mov dword [ecx + 4], eax
lea eax, [esp + 0x98]
push eax
mov ecx, edi
call fcn.0069fd50
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x60], edx
mov dword [esp + 0x44], eax
cmp eax, 3
jbe 0x698a3e
push dword [ecx + 0x18]
call fcn.0067dc10
add esp, 4
mov dword [esp + 0x3c], eax
cmp byte [edi + 0xc8], 0
jne 0x698830
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], eax
inc eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004155e1
mov edi, dword [esp + 0x74]
test al, al
jne 0x698827
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
inc eax
mov dword [esp + 0x60], eax
shl eax, 2
mov dword [esp + 0x54], edi
lea ecx, [edx + edx*2]
cmp eax, ecx
jb 0x6987d9
lea eax, [edx + edx]
push eax
jmp 0x6987ed
mov ecx, edx
mov eax, edx
sub ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x60]
shr eax, 3
cmp ecx, eax
ja 0x69880d
push edx
lea ecx, [esp + 0x20]
call fcn.0040af97
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x24]
call fcn.004155e1
mov edi, dword [esp + 0x54]
inc dword [esp + 0x20]
cmp dword [edi], 0xffffffff
je 0x69881a
dec dword [esp + 0x24]
mov eax, dword [esp + 0x38]
mov dword [edi], eax
mov dword [edi + 4], 0
mov eax, dword [esp + 0x3c]
mov dword [edi + 4], eax
jmp case.0x6984cc.2
sub esp, 8
lea ecx, [edi + 0x118]
cmp dword [edi + 0x12c], 0x10
mov edx, esp
jb 0x69884a
mov ecx, dword [edi + 0x118]
mov dword [edx], ecx
mov ecx, edi
mov eax, dword [edi + 0x128]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x44]
push eax
push dword [esp + 0x6c]
push dword [esp + 0x48]
push 0
push dword [esp + 0x64]
call fcn.006a1f40
inc dword [esp + 0x4c]
test byte [esp + 0x30], 1
je 0x698888
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x698888
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [esp + 0x18], 1
je 0x69889d
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x69889d
mov eax, dword [ecx]
push 1
call dword [eax]
mov edi, dword [esp + 0x58]
push 0
lea eax, [esp + 0x14]
push eax
lea ecx, [edi + 0xc]
call fcn.004019dd
mov dl, byte [esp + 0x18]
mov al, dl
not al
test al, 1
jne 0x698313
mov eax, dword [esp + 0xc]
test dl, 1
je 0x698a95
mov ecx, dword [esp + 0x10]
lea edi, [esp + 0x5c]
or eax, 1
mov dword [esp + 0x34], ecx
mov dword [esp + 0x10], 0
jmp 0x698aa6
test dl, 1
je 0x6988a1
test ecx, ecx
je 0x6988a1
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x6988a1
mov ecx, dword [esp + 8]
test byte [esp + 0x18], 1
mov dword [esp + 0x34], 0
mov dword [ecx], eax
jmp 0x698b13
mov ecx, dword [esp + 8]
lea eax, [esp + 0x40]
push eax
push ecx
mov ecx, edi
mov word [esp + 0x50], 0x103
mov dword [esp + 0x48], str.Invalid_record
call fcn.0067bc20
mov eax, dword [esp + 0xa0]
lea ecx, [esp + 0xac]
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp eax, ecx
je 0x698950
push eax
call esi
add esp, 4
test byte [esp + 0x30], 1
je 0x698965
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x698965
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [esp + 0x18], 1
je 0x69897a
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x69897a
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x28]
push 4
shl eax, 3
push eax
push dword [esp + 0x24]
call fcn.00415398
mov eax, dword [esp + 0x13c]
lea ecx, [esp + 0x14c]
add esp, 0xc
cmp eax, ecx
je 0x698b55
push eax
call esi
jmp 0x698b52
mov dword [esp + 0x40], eax
lea ecx, [esp + 0x40]
lea eax, [esp + 0x35c]
mov word [esp + 0x48], 0x109
push eax
call fcn.0040a321
push eax
lea eax, [esp + 0x348]
push str.Invalid_hash_length
push eax
call fcn.0040e89a
mov ecx, dword [esp + 0x14]
add esp, 0xc
mov dword [esp + 0x68], eax
lea eax, [esp + 0x68]
mov word [esp + 0x70], 0x104
push eax
push ecx
mov ecx, edi
call fcn.0067bc20
lea ecx, [esp + 0x344]
call fcn.0040aeed
lea ecx, [esp + 0x35c]
call fcn.0040aeed
jmp 0x6985a3
mov ecx, dword [esp + 8]
lea eax, [esp + 0x40]
push eax
push ecx
mov ecx, edi
mov word [esp + 0x50], 0x103
mov dword [esp + 0x48], str.Invalid_record
call fcn.0067bc20
jmp 0x6985a3
mov ecx, dword [esp + 8]
lea eax, [esp + 0x68]
push eax
push ecx
mov ecx, edi
mov word [esp + 0x78], 0x103
mov dword [esp + 0x70], str.Invalid_record
call fcn.0067bc20
jmp 0x6985a3
mov ecx, dword [esp + 8]
push ecx
lea ecx, [esp + 0x30]
call fcn.004091f6
jmp 0x6985a3
mov eax, dword [esp + 8]
mov dword [eax], 0
test dl, 1
je 0x698b23
mov eax, dword [ecx]
mov ecx, 1
jmp 0x698b1f
or eax, 6
lea edi, [esp + 0x60]
xor esi, esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x34], esi
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0x34]
mov dword [edi], 0
mov dword [ecx], esi
mov esi, dword [esp + 0x50]
test al, 4
je 0x698adb
mov ecx, dword [esp + 0x60]
and eax, 0xfffffffb
mov dword [esp + 0xc], eax
test ecx, ecx
je 0x698adb
mov eax, dword [ecx]
push 1
call dword [eax]
mov dl, byte [esp + 0x18]
mov eax, dword [esp + 0xc]
test al, 2
je 0x698afa
and eax, 0xfffffffd
mov dword [esp + 0xc], eax
test esi, esi
je 0x698afa
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov dl, byte [esp + 0x18]
mov eax, dword [esp + 0xc]
test al, 1
je 0x698b10
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x698b10
mov eax, dword [ecx]
push 1
call dword [eax]
mov dl, byte [esp + 0x18]
test dl, 1
je 0x698b23
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x698b23
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x28]
push 4
shl eax, 3
push eax
push dword [esp + 0x24]
call fcn.00415398
mov eax, dword [esp + 0x13c]
lea ecx, [esp + 0x14c]
add esp, 0xc
cmp eax, ecx
je 0x698b55
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, dword [esp + 0x374]
mov eax, dword [esp + 8]
pop edi
pop esi
xor ecx, esp
call fcn.004087b5
mov esp, ebp
pop ebp
ret 4