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

Disassembly:
mov eax, 0x2604
call fcn.10090e60
mov eax, dword [0x100cd8ec]
xor eax, esp
mov dword [esp + 0x2600], eax
mov eax, dword [esp + 0x2608]
mov ecx, dword [esp + 0x2610]
mov edx, dword [esp + 0x2614]
push ebx
mov ebx, dword [esp + 0x2610]
push ebp
push esi
mov esi, dword [esp + 0x2624]
push edi
mov edi, dword [esp + 0x262c]
xor ebp, ebp
push 0x103
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x40d]
push ebp
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x54], ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x48], ebp
mov byte [esp + 0x414], 0
call sub.MSVCR80.dll_memset
push 0x1fff
lea ecx, [esp + 0x621]
push ebp
push ecx
mov byte [esp + 0x628], 0
call sub.MSVCR80.dll_memset
mov eax, ebx
add esp, 0x18
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x90], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x58], ebp
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10089798
sub eax, ecx
push eax
push ebx
lea edx, [esp + 0x94]
push edx
lea eax, [esp + 0x58]
push eax
push 0xfde9
call fcn.1007e450
add esp, 0x14
test eax, eax
jne 0x10089811
mov eax, dword [esp + 0x20]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100897d0
mov ecx, dword [esp + 0x20]
sub eax, edx
push eax
push ecx
lea edx, [esp + 0x98]
push edx
lea eax, [esp + 0x64]
push eax
push 0xfde9
call fcn.1007e450
add esp, 0x14
test eax, eax
je 0x10089819
mov eax, dword [esp + 0x4c]
cmp eax, ebp
je 0x10089811
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
or eax, 0xffffffff
jmp 0x1008a2c3
mov ecx, dword [esp + 0x4c]
push ecx
call dword [sym.imp.MSVCR80.dll__wunlink]
mov edx, dword [esp + 0x2638]
xor eax, eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov eax, edx
add esp, 4
and eax, 0x100
mov ebp, 1
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x2630]
lea ecx, [ebp + 1]
je 0x100898c2
test dl, 0x60
je 0x100898c2
lea edx, [esp + 0x78]
push edx
push eax
lea eax, [esp + 0x64]
push esi
push eax
mov dword [esp + 0x58], ebp
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], edi
mov dword [esp + 0x98], ecx
call sub.XecureAcCSP.dll_XFA_CSP_EncryptInit
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x1008a29f
jmp 0x10089904
test edx, 0x400
je 0x10089900
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x88], ecx
lea ecx, [esp + 0x78]
push ecx
push eax
lea edx, [esp + 0x64]
push esi
push edx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x90], edi
call sub.XecureAcCSP.dll_XFA_CSP_DecryptInit
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x1008a29f
jmp 0x10089904
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x2634]
mov eax, ecx
and eax, 0x400
mov dword [esp + 0x50], eax
jne 0x1008999c
test ecx, 0x800
jne 0x1008999c
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.1007eef0
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x1008a29f
push 0x8002
push ebx
call fcn.1007ead0
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
jne 0x10089974
push ebx
call fcn.1007eb70
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x10089974
or ebp, eax
jmp 0x1008a29f
mov eax, dword [esp + 0x30]
mov edx, dword [eax]
mov eax, dword [eax + 4]
push edx
push eax
push esi
call fcn.1007eea0
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x100899cc
push esi
call fcn.1007eed0
add esp, 4
jmp 0x1008a29f
push 0x8002
push ebx
call fcn.1007ead0
add esp, 8
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x100899cc
push ebx
call fcn.1007eb70
add esp, 4
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x100899cc
or ebp, eax
jmp 0x1008a29f
cmp dword [esp + 0x70], 0
je 0x10089da8
push 0x103
lea ecx, [esp + 0x309]
push 0
push ecx
call sub.MSVCR80.dll_memset
push 0x103
lea edx, [esp + 0x51d]
push 0
push edx
mov byte [esp + 0x524], 0
call sub.MSVCR80.dll_memset
mov esi, dword [esp + 0x38]
xor eax, eax
push 0x5c
push esi
mov byte [esp + 0x314], 0
mov dword [esp + 0x315], eax
mov dword [esp + 0x319], eax
mov dword [esp + 0x31d], eax
mov word [esp + 0x321], ax
mov byte [esp + 0x323], al
mov byte [esp + 0x304], al
mov dword [esp + 0x305], eax
mov dword [esp + 0x309], eax
mov dword [esp + 0x30d], eax
mov word [esp + 0x311], ax
mov byte [esp + 0x313], al
mov byte [esp + 0x324], 0xc
call dword [sym.imp.MSVCR80.dll_strrchr]
add esp, 0x20
test eax, eax
push 0x103
jne 0x10089a8c
push esi
lea eax, [esp + 0x410]
push eax
jmp 0x10089a98
add eax, 1
push eax
lea ecx, [esp + 0x410]
push ecx
call dword [sym.imp.MSVCR80.dll_strncpy]
lea eax, [esp + 0x414]
add esp, 0xc
lea edx, [eax + 1]
jmp 0x10089ab0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10089ab0
sub eax, edx
push eax
lea edx, [esp + 0x40c]
push edx
lea eax, [esp + 0x514]
push eax
call sub.MSVCR80.dll_memcpy
lea eax, [esp + 0x518]
add esp, 0xc
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10089ae0
sub eax, edx
mov ebx, eax
cmp ebx, 0x80
mov byte [esp + 0x13], cl
jb 0x10089b65
mov eax, 1
mov dl, 1
lea esi, [eax + 2]
lea ecx, [eax*8]
mov edi, ebx
shr edi, cl
test edi, edi
je 0x10089b15
add dl, 1
add eax, 1
sub esi, 1
jne 0x10089b03
mov cl, dl
xor cl, 0x80
test dl, dl
mov byte [esp + 0x13], dl
mov byte [esp + 0x305], cl
lea eax, [esi + 2]
jbe 0x10089b71
movzx edi, dl
mov dword [esp + 0x30], edi
jmp 0x10089b40
mov edx, edi
sub edx, esi
lea ecx, [edx*8 - 8]
mov edx, ebx
shr edx, cl
add eax, 1
add esi, 1
sub dword [esp + 0x30], 1
mov byte [esp + eax + 0x303], dl
jne 0x10089b40
jmp 0x10089b71
mov byte [esp + 0x305], bl
mov eax, 2
push ebx
lea ecx, [esp + 0x510]
push ecx
lea edx, [esp + eax + 0x30c]
push edx
call sub.MSVCR80.dll_memcpy
movzx eax, byte [esp + 0x1f]
mov esi, dword [esp + 0x20]
lea ecx, [eax + ebx + 2]
push ecx
lea edx, [esp + 0x314]
push edx
push esi
call fcn.1007eea0
add esp, 0x18
test eax, eax
je 0x10089bbb
push esi
call fcn.1007eed0
add esp, 4
or ebp, 0xffffffff
jmp 0x1008a29f
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x94]
push eax
push ecx
call dword [sym.imp.MSVCR80.dll__wstat64i32]
add esp, 8
test eax, eax
je 0x10089be6
push esi
call fcn.1007eed0
add esp, 4
or ebp, 0xffffffff
jmp 0x1008a29f
lea edx, [esp + 0xb4]
push edx
mov byte [esp + 0x2f8], 0x17
mov byte [esp + 0x2f9], 0xd
call dword [sym.imp.MSVCR80.dll__gmtime64]
mov ecx, dword [eax + 0x14]
add esp, 4
cmp ecx, 0x63
jle 0x10089c12
add ecx, 0xffffff9c
mov edx, dword [eax]
push edx
mov edx, dword [eax + 4]
push edx
mov edx, dword [eax + 8]
push edx
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
push edx
add eax, 1
push eax
push ecx
lea ecx, [esp + 0x30e]
push str._.2d_.2d_.2d_.2d_.2d_.2dZ
push ecx
call dword [sym.imp.MSVCR80.dll_sprintf]
push 0xf
lea edx, [esp + 0x318]
push edx
push esi
call fcn.1007eea0
add esp, 0x2c
test eax, eax
je 0x10089c64
push esi
call fcn.1007eed0
add esp, 4
or ebp, 0xffffffff
jmp 0x1008a29f
xor edi, edi
cmp dword [esp + 0x48], edi
mov esi, 8
je 0x10089cbe
mov eax, dword [esp + 0x2630]
cmp eax, esi
je 0x10089c81
cmp eax, 0x15
jne 0x10089c88
mov esi, 0x10
xor edi, edi
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edi
push esi
push ebx
push eax
call fcn.100916b0
cdq
sub esi, eax
mov eax, dword [esp + 0x18]
sbb edi, edx
add esi, eax
adc edi, ebx
cmp dword [esp + 0x2630], 6
jne 0x10089cb4
mov esi, eax
mov edi, ebx
mov eax, esi
mov dword [esp + 0x70], eax
mov ebx, edi
jmp 0x10089ccc
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x70], ecx
mov eax, ecx
test ebx, ebx
mov byte [esp + 0x2e4], 4
mov byte [esp + 0x13], 0
jl 0x10089d6e
jg 0x10089cee
cmp eax, 0x80
jb 0x10089d6e
mov esi, 1
mov byte [esp + 0x13], 1
lea edi, [esi + 2]
jmp 0x10089d04
mov eax, dword [esp + 0x70]
lea ecx, [esi*8]
mov edx, ebx
call fcn.10091680
or eax, edx
je 0x10089d1b
add byte [esp + 0x13], 1
add esi, 1
sub edi, 1
jne 0x10089d00
mov al, byte [esp + 0x13]
mov dl, al
xor dl, 0x80
test al, al
mov byte [esp + 0x2e5], dl
jbe 0x10089d75
movzx eax, al
lea esi, [esp + 0x2e6]
lea edi, [eax*8 - 8]
mov dword [esp + 0x30], eax
lea esp, [esp]
mov eax, dword [esp + 0x70]
mov edx, ebx
mov ecx, edi
call fcn.10091680
mov byte [esi], al
add esi, 1
sub edi, 8
sub dword [esp + 0x30], 1
jne 0x10089d50
jmp 0x10089d75
mov byte [esp + 0x2e5], al
movzx eax, byte [esp + 0x13]
mov esi, dword [esp + 0x14]
add eax, 2
push eax
lea ecx, [esp + 0x2e8]
push ecx
push esi
call fcn.1007eea0
add esp, 0xc
test eax, eax
je 0x10089da8
push esi
call fcn.1007eed0
add esp, 4
or ebp, 0xffffffff
jmp 0x1008a29f
mov edx, dword [esp + 0x20]
push 0x8000
push edx
call fcn.1007ead0
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
mov dword [esp + 0x20], edi
jne 0x10089dd9
mov eax, dword [esp + 0x14]
push eax
call fcn.1007eed0
add esp, 4
or ebp, edi
jmp 0x1008a29f
mov eax, dword [esp + 0x2634]
test eax, 0x200
je 0x10089e3b
push 0x220
lea ecx, [esp + 0xc8]
push 0
push ecx
call sub.MSVCR80.dll_memset
lea edx, [esp + 0xd0]
push edx
push edi
call fcn.10089360
mov esi, eax
add esp, 0x14
test esi, esi
jge 0x10089e2d
mov eax, dword [esp + 0x14]
push eax
call fcn.1007eed0
push edi
call fcn.1007eed0
add esp, 8
or ebp, 0xffffffff
jmp 0x1008a29f
push 0
push esi
push edi
call sub.MSVCR80.dll__lseek
add esp, 0xc
jmp 0x10089e9a
cmp dword [esp + 0x50], 0
jne 0x10089e49
test eax, 0x800
je 0x10089e96
push 0x220
lea ecx, [esp + 0xc8]
push 0
push ecx
call sub.MSVCR80.dll_memset
lea edx, [esp + 0xd0]
push edx
push edi
call fcn.10089360
add esp, 0x14
test eax, eax
jl 0x10089e12
mov eax, dword [esp + 0x1cc]
mov ecx, dword [esp + 0x1d0]
mov dword [esp + 0x18], eax
push 2
neg eax
push eax
push edi
mov dword [esp + 0x28], ecx
call sub.MSVCR80.dll__lseek
add esp, 0xc
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x28]
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
je 0x10089ed0
mov edx, dword [esp + 0x2634]
mov edi, dword [esp + 0x18]
push edx
mov eax, esi
cdq
sub edi, eax
mov eax, dword [esp + 0x20]
push 0
push 0
sbb eax, edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [ebx + 0x28]
push edi
push edx
push eax
call ecx
add esp, 0x1c
test dword [esp + 0x2634], 0x800
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
je 0x10089f39
mov edx, edi
or edx, ecx
jne 0x10089f39
mov esi, dword [esp + 0x14]
push edx
push 0x1009fc09
push esi
call fcn.1007eea0
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x1008998e
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x10089e25
mov ecx, dword [esp + 0x2634]
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [ebx + 0x28]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0
push edx
push ecx
call eax
add esp, 0x1c
or ebp, 0xffffffff
jmp 0x1008a29f
mov eax, esi
cdq
mov esi, edi
mov dword [esp + 0x28], eax
sub esi, eax
mov eax, ecx
sbb eax, edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x54], eax
js 0x1008a104
jg 0x10089f60
test esi, esi
jbe 0x1008a104
cmp dword [esp + 0x54], 0
jl 0x10089f78
jg 0x10089f71
cmp esi, 0x2000
jbe 0x10089f78
mov ebp, 0x2000
jmp 0x10089f7a
mov ebp, esi
mov edi, dword [esp + 0x20]
push ebp
lea edx, [esp + 0x614]
push edx
push edi
call fcn.1007ee60
add esp, 0xc
test eax, eax
jne 0x1008a173
cmp dword [esp + 0x48], eax
je 0x10089fd6
lea ecx, [esp + 0x34]
lea eax, [esp + 0x610]
push ecx
lea edx, [esp + 0x44]
mov dword [esp + 0x3c], eax
push edx
lea eax, [esp + 0x64]
push eax
mov dword [esp + 0x40], ebp
call sub.XecureAcCSP.dll_XFA_CSP_EncryptUpdate
add esp, 0xc
test eax, eax
jne 0x1008a173
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
jmp 0x1008a022
cmp dword [esp + 0x64], 0
je 0x1008a019
lea eax, [esp + 0x34]
lea edx, [esp + 0x610]
push eax
lea ecx, [esp + 0x6c]
mov dword [esp + 0x3c], edx
push ecx
lea edx, [esp + 0x64]
push edx
mov dword [esp + 0x40], ebp
call sub.XecureAcCSP.dll_XFA_CSP_DecryptUpdate
add esp, 0xc
test eax, eax
jne 0x1008a173
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x68]
jmp 0x1008a026
lea ecx, [esp + 0x610]
mov eax, ebp
mov dword [esp + 0x38], ecx
sub esi, ebp
mov ecx, 0
sbb dword [esp + 0x54], ecx
cmp dword [esp + 0x64], ecx
mov dword [esp + 0x34], eax
je 0x1008a071
cmp dword [esp + 0x54], ecx
jg 0x1008a071
jl 0x1008a047
cmp esi, ecx
ja 0x1008a071
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x60]
push eax
mov dword [esp + 0x44], ecx
call sub.XecureAcCSP.dll_XFA_CSP_DecryptFinal
add esp, 8
test eax, eax
jne 0x1008a1c5
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x3c]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x14]
push eax
push ecx
push edi
call fcn.1007eea0
lea edx, [esp + 0x4c]
push edx
mov ebp, eax
call sub.XecureAcIO.dll_XFA_BIN_Reset
lea eax, [esp + 0x78]
push eax
call sub.XecureAcIO.dll_XFA_BIN_Reset
add esp, 0x14
test ebp, ebp
jne 0x1008a228
mov edi, dword [ebx + 0x2c]
test edi, edi
je 0x1008a0e7
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
sbb ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x2634]
push edx
mov edx, eax
sub edx, esi
mov ebp, ecx
sbb ebp, dword [esp + 0x58]
push ebp
push edx
push ecx
mov ecx, dword [ebx + 0x28]
push eax
mov eax, dword [esp + 0x38]
push eax
push ecx
call edi
mov ebp, eax
add esp, 0x1c
test ebp, ebp
jne 0x1008a238
cmp dword [esp + 0x54], 0
jg 0x10089f71
jl 0x1008a0fc
test esi, esi
ja 0x10089f60
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x1008a12f
mov edx, dword [esp + 0x2634]
sub edi, dword [esp + 0x28]
push edx
sbb ecx, dword [esp + 0x30]
mov edx, dword [ebx + 0x28]
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov ecx, dword [esp + 0x34]
push edi
push ecx
push edx
call eax
add esp, 0x1c
cmp dword [esp + 0x48], 0
je 0x1008a288
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x60]
push ecx
call sub.XecureAcCSP.dll_XFA_CSP_EncryptFinal
add esp, 8
test eax, eax
je 0x1008a249
mov edx, dword [esp + 0x14]
push edx
call fcn.1007eed0
mov eax, dword [esp + 0x24]
push eax
call fcn.1007eed0
add esp, 8
or ebp, 0xffffffff
jmp 0x1008a29f
mov edx, dword [esp + 0x14]
push edx
call fcn.1007eed0
push edi
call fcn.1007eed0
mov eax, dword [ebx + 0x2c]
add esp, 8
test eax, eax
je 0x10089e25
mov ecx, dword [esp + 0x2634]
mov edx, dword [esp + 0x18]
sub edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x20]
sbb ecx, dword [esp + 0x30]
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov ecx, dword [ebx + 0x28]
push edx
mov edx, dword [esp + 0x38]
push edx
push ecx
call eax
add esp, 0x1c
or ebp, 0xffffffff
jmp 0x1008a29f
lea edx, [esp + 0x40]
push edx
call sub.XecureAcIO.dll_XFA_BIN_Reset
lea eax, [esp + 0x6c]
push eax
call sub.XecureAcIO.dll_XFA_BIN_Reset
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.1007eed0
push edi
call fcn.1007eed0
mov eax, dword [ebx + 0x2c]
add esp, 0x10
test eax, eax
je 0x10089e25
mov edx, dword [esp + 0x2634]
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
sbb edx, dword [esp + 0x30]
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
mov edx, dword [ebx + 0x28]
push ecx
mov ecx, dword [esp + 0x38]
push ecx
push edx
call eax
add esp, 0x1c
or ebp, 0xffffffff
jmp 0x1008a29f
push edi
call fcn.1007eed0
mov eax, dword [esp + 0x24]
push eax
jmp 0x1008a17e
mov edx, dword [esp + 0x14]
push edx
call fcn.1007eed0
mov eax, dword [esp + 0x24]
push eax
jmp 0x1008a297
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x14]
push ecx
push edx
push esi
call fcn.1007eea0
mov ebp, eax
lea eax, [esp + 0x4c]
push eax
call sub.XecureAcIO.dll_XFA_BIN_Reset
add esp, 0x10
test ebp, ebp
je 0x1008a28c
push esi
call fcn.1007eed0
mov ecx, dword [esp + 0x24]
push ecx
call fcn.1007eed0
add esp, 8
or ebp, 0xffffffff
jmp 0x1008a29f
mov esi, dword [esp + 0x14]
push esi
call fcn.1007eed0
mov edx, dword [esp + 0x24]
push edx
call fcn.1007eed0
add esp, 8
mov eax, dword [esp + 0x4c]
test eax, eax
mov esi, dword [sym.imp.MSVCR80.dll_free]
je 0x1008a2b3
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x58]
test eax, eax
je 0x1008a2c1
push eax
call esi
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x2610]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10090e24
add esp, 0x2604
ret