Function at 0x1005aa40
Capabilities:
Get file size
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1026059c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
mov eax, dword [ecx + 0x1c]
push ebx
push ebp
push esi
test eax, eax
push edi
mov dword [esp + 0x7c], ecx
jne 0x1005aa71
xor eax, eax
jmp 0x1005b6ed
lea eax, [esp + 0x10]
push eax
call fcn.10056040
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [esp + 0x10]
mov ebp, eax
call fcn.10090bf0
cmp ebp, 0xffffffff
je 0x1005abbc
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov eax, dword [0x1030ceb0]
test eax, eax
je 0x1005aad8
push esi
push str.ReadMailInfo_file_size:_lu_B
push str.MailInfo
push 4
push 0x1030c61c
call fcn.100a65e0
add esp, 0x14
cmp esi, 0xffffffff
je 0x1005ac0c
test esi, esi
je 0x1005ac0c
mov eax, esi
shr eax, 1
inc eax
lea ecx, [eax + eax]
push ecx
call fcn.1024cbd1
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1005abea
lea ecx, [esi + 2]
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [0x1030ceb0]
test ecx, ecx
je 0x1005ab5a
mov ecx, dword [esp + 0x14]
push ecx
push eax
push str.ReadMailInfo_after_read_file__bRead__d___dwRead__lu_
push str.MailInfo
push 4
push 0x1030c61c
call fcn.100a65e0
add esp, 0x18
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
call fcn.100bc810
xor edi, edi
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0xb8], edi
call fcn.100bd570
push ebx
call fcn.1024cbfa
add esp, 4
lea ecx, [esp + 0x18]
call fcn.100bdc60
push str.MailInfo
lea ecx, [esp + 0x1c]
call fcn.100bd780
test eax, eax
jne 0x1005ac1a
lea ecx, [esp + 0x18]
mov dword [esp + 0xb4], 0xffffffff
call fcn.100bc8a0
xor eax, eax
jmp 0x1005b6ed
mov eax, dword [0x1030ceb0]
test eax, eax
je 0x1005ac13
push str.MailInfo.dat
push str.ReadMailInfo_read_file__s__fail
push str.MailInfo
push 4
push 0x1030c61c
call fcn.100a65e0
add esp, 0x14
xor eax, eax
jmp 0x1005b6ed
mov eax, dword [0x1030ceb0]
test eax, eax
je 0x1005ac0c
push str.ReadMailInfo_new_memory_fail
push str.MailInfo
push 4
push 0x1030c61c
call fcn.100a65e0
add esp, 0x10
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1005b6ed
lea ecx, [esp + 0x18]
call fcn.100bdc30
push str.GUID
lea ecx, [esp + 0x1c]
call fcn.100bd8c0
mov ebx, dword [esp + 0xbc]
test eax, eax
je 0x1005ac72
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
call fcn.100bddc0
mov eax, dword [eax]
lea ecx, [ebx + 8]
push ecx
push eax
mov byte [esp + 0xbc], 1
call fcn.100aaf10
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0xb4], 0
call fcn.10090bf0
lea ecx, [esp + 0x18]
call fcn.100bdc30
push str.ProcID
lea ecx, [esp + 0x1c]
call fcn.100bd8c0
test eax, eax
je 0x1005acba
lea esi, [ebx + 0x18]
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x1c]
mov dword [esi], edi
call fcn.100bddc0
mov eax, dword [eax]
push esi
push 0x102b5870
push eax
call fcn.10078f2f
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.10090bf0
lea ecx, [esp + 0x18]
call fcn.100bdc30
push str.ProcBit
lea ecx, [esp + 0x1c]
call fcn.100bd8c0
test eax, eax
je 0x1005ad02
lea esi, [ebx + 0x1c]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
mov dword [esi], edi
call fcn.100bddc0
mov eax, dword [eax]
push esi
push 0x102b5870
push eax
call fcn.10078f2f
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.10090bf0
lea ecx, [esp + 0x18]
call fcn.100bdc30
push str.Direction
lea ecx, [esp + 0x1c]
call fcn.100bd8c0
test eax, eax
je 0x1005ad4a
lea ecx, [esp + 0x10]
lea esi, [ebx + 0x20]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esi], edi
call fcn.100bddc0
mov eax, dword [eax]
push esi
push 0x102b5870
push eax
call fcn.10078f2f
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.10090bf0
lea ecx, [esp + 0x18]
call fcn.100bdc30
push str.MailSize
lea ecx, [esp + 0x1c]
call fcn.100bd8c0
test eax, eax
je 0x1005ad95
lea esi, [ebx + 0x28]
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x1c]
mov dword [esi], edi
mov dword [esi + 4], edi
call fcn.100bddc0
mov eax, dword [eax]
push esi
push str._I64u
push eax
call fcn.10078f2f
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.10090bf0
lea ecx, [esp + 0x18]
call fcn.100bdc30
push str.From
lea ecx, [esp + 0x1c]
call fcn.100bd8c0
test eax, eax
je 0x1005ade0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
call fcn.100bddc0
push eax
lea ecx, [ebx + 0x30]
mov byte [esp + 0xb8], 2
call fcn.10090d80
lea ecx, [esp + 0x10]
mov byte [esp + 0xb4], 0
call fcn.10090bf0
lea ecx, [esp + 0x18]
call fcn.100bdc30
push 0x102cac98
lea ecx, [esp + 0x1c]
call fcn.100bd8c0
test eax, eax
je 0x1005ae2b
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1c]
call fcn.100bddc0
push eax
lea ecx, [ebx + 0x34]
mov byte [esp + 0xb8], 3
call fcn.10090d80
lea ecx, [esp + 0x10]
mov byte [esp + 0xb4], 0
call fcn.10090bf0
lea ecx, [esp + 0x18]
call fcn.100bdc30
push 0x102cac90
lea ecx, [esp + 0x1c]
call fcn.100bd8c0
test eax, eax
je 0x1005ae76
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
call fcn.100bddc0
push eax
lea ecx, [ebx + 0x38]
mov byte [esp + 0xb8], 4
call fcn.10090d80
lea ecx, [esp + 0x10]
mov byte [esp + 0xb4], 0
call fcn.10090bf0
lea ecx, [esp + 0x18]
call fcn.100bdc30
push str.Bccs
lea ecx, [esp + 0x1c]
call fcn.100bd8c0
test eax, eax
je 0x1005aec1
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
call fcn.100bddc0
push eax
lea ecx, [ebx + 0x3c]
mov byte [esp + 0xb8], 5
call fcn.10090d80
lea ecx, [esp + 0x10]
mov byte [esp + 0xb4], 0
call fcn.10090bf0
lea ecx, [esp + 0x18]
call fcn.100bdc30
push 0x102b9d2c
lea ecx, [esp + 0x1c]
call fcn.100bd8c0
test eax, eax
je 0x1005af0c
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1c]
call fcn.100bddc0
push eax
lea ecx, [ebx + 0x40]
mov byte [esp + 0xb8], 6
call fcn.10090d80
lea ecx, [esp + 0x10]
mov byte [esp + 0xb4], 0
call fcn.10090bf0
lea ecx, [esp + 0x18]
call fcn.100bdc30
push str.HasText
lea ecx, [esp + 0x1c]
call fcn.100bd8c0
test eax, eax
je 0x1005af7a
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
mov dword [esp + 0x18], edi
call fcn.100bddc0
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push 0x102b5a74
push eax
call fcn.10078f2f
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.10090bf0
cmp dword [esp + 0x14], edi
je 0x1005af7a
mov esi, dword [esp + 0x7c]
lea edx, [ebx + 0x44]
push 1
push edx
mov ecx, esi
call fcn.1005b740
lea eax, [ebx + 0x48]
push edi
push eax
mov ecx, esi
call fcn.1005b740
lea ecx, [esp + 0x18]
call fcn.100bdc30
push str.Attach
lea ecx, [esp + 0x1c]
call fcn.100bd8c0
test eax, eax
je 0x1005b6c0
lea ecx, [esp + 0x18]
xor edi, edi
call fcn.100bdbc0
mov eax, dword [0x1026e87c]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
push 0x102f684c
lea ecx, [esp + 0x64]
mov byte [esp + 0xb8], 0xc
mov dword [esp + 0x50], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
call fcn.10090e70
push 0x102f684c
lea ecx, [esp + 0x68]
call fcn.10090e70
push 0x102f684c
lea ecx, [esp + 0x6c]
call fcn.10090e70
push 0x102f684c
lea ecx, [esp + 0x70]
call fcn.10090e70
push 0x102f684c
lea ecx, [esp + 0x74]
call fcn.10090e70
push 0x102f684c
lea ecx, [esp + 0x78]
call fcn.10090e70
lea ecx, [esp + 0x18]
mov byte [esp + 0xb4], 0xd
call fcn.100bdc30
push 0x102cac5c
lea ecx, [esp + 0x1c]
call fcn.100bd8c0
test eax, eax
je 0x1005b080
lea ecx, [esp + 0x10]
mov dword [esp + 0x4c], edi
push ecx
lea ecx, [esp + 0x1c]
call fcn.100bddc0
mov eax, dword [eax]
lea edx, [esp + 0x4c]
push edx
push 0x102b5870
push eax
call fcn.10078f2f
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.10090bf0
lea ecx, [esp + 0x18]
call fcn.100bdc30
push str.Size
lea ecx, [esp + 0x1c]
call fcn.100bd8c0
test eax, eax
je 0x1005b0d5
lea eax, [esp + 0x8c]
lea ecx, [esp + 0x18]
push eax
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
call fcn.100bddc0
mov eax, dword [eax]
lea ecx, [esp + 0x54]
push ecx
push str._I64u
push eax
call fcn.10078f2f
add esp, 0xc
lea ecx, [esp + 0x8c]
call fcn.10090bf0
lea ecx, [esp + 0x18]
call fcn.100bdc30
push str.Status
lea ecx, [esp + 0x1c]
call fcn.100bd8c0
test eax, eax
je 0x1005b126
lea edx, [esp + 0x88]
lea ecx, [esp + 0x18]
push edx
mov dword [esp + 0x60], edi
call fcn.100bddc0
mov eax, dword [eax]
lea ecx, [esp + 0x5c]
push ecx
push 0x102b5870
push eax
call fcn.10078f2f
add esp, 0xc
lea ecx, [esp + 0x88]
call fcn.10090bf0
lea ecx, [esp + 0x18]
call fcn.100bdc30
push str.Name
lea ecx, [esp + 0x1c]
call fcn.100bd8c0
test eax, eax
je 0x1005b178
lea edx, [esp + 0xa4]
lea ecx, [esp + 0x18]
push edx
call fcn.100bddc0
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0xb8], 0xe
call fcn.10090d80
lea ecx, [esp + 0xa4]
mov byte [esp + 0xb4], 0xd
call fcn.10090bf0
lea ecx, [esp + 0x18]
call fcn.100bdc30
push str.Cache
lea ecx, [esp + 0x1c]
call fcn.100bd8c0
test eax, eax
je 0x1005b1ca
lea eax, [esp + 0xa0]
lea ecx, [esp + 0x18]
push eax
call fcn.100bddc0
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0xb8], 0xf
call fcn.10090d80
lea ecx, [esp + 0xa0]
mov byte [esp + 0xb4], 0xd
call fcn.10090bf0
lea ecx, [esp + 0x18]
call fcn.100bdc30
push str.DecryptPath
lea ecx, [esp + 0x1c]
call fcn.100bd8c0
test eax, eax
je 0x1005b21c
lea ecx, [esp + 0x98]
push ecx
lea ecx, [esp + 0x1c]
call fcn.100bddc0
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0xb8], 0x10
call fcn.10090d80
lea ecx, [esp + 0x98]
mov byte [esp + 0xb4], 0xd
call fcn.10090bf0
lea ecx, [esp + 0x18]
call fcn.100bdc30
push str.DocWatermarkPath
lea ecx, [esp + 0x1c]
call fcn.100bd8c0
test eax, eax
je 0x1005b26e
lea edx, [esp + 0x80]
lea ecx, [esp + 0x18]
push edx
call fcn.100bddc0
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0xb8], 0x11
call fcn.10090d80
lea ecx, [esp + 0x80]
mov byte [esp + 0xb4], 0xd
call fcn.10090bf0
lea ecx, [esp + 0x18]
call fcn.100bdc30
push str.DecryptPath2
lea ecx, [esp + 0x1c]
call fcn.100bd8c0
test eax, eax
je 0x1005b2c0
lea eax, [esp + 0x9c]
lea ecx, [esp + 0x18]
push eax
call fcn.100bddc0
push eax
lea ecx, [esp + 0x74]
mov byte [esp + 0xb8], 0x12
call fcn.10090d80
lea ecx, [esp + 0x9c]
mov byte [esp + 0xb4], 0xd
call fcn.10090bf0
lea ecx, [esp + 0x18]
call fcn.100bdc30
push str.EncryptXml
lea ecx, [esp + 0x1c]
call fcn.100bd8c0
test eax, eax
je 0x1005b312
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x1c]
call fcn.100bddc0
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0xb8], 0x13
call fcn.10090d80
lea ecx, [esp + 0x94]
mov byte [esp + 0xb4], 0xd
call fcn.10090bf0
mov eax, dword [ebx + 0x50]
mov ebp, eax
mov dword [esp + 0x90], ebp
inc ebp
cmp ebp, edi
jne 0x1005b35b
mov esi, dword [ebx + 0x4c]
cmp esi, edi
je 0x1005b350
mov edx, eax
dec eax
test edx, edx
je 0x1005b341
lea ebp, [eax + 1]
mov ecx, esi
call fcn.10056c60
add esi, 0x30
dec ebp
jne 0x1005b334
mov eax, dword [ebx + 0x4c]
push eax
call fcn.1024cbfa
add esp, 4
mov dword [ebx + 0x4c], edi
mov dword [ebx + 0x54], edi
mov dword [ebx + 0x50], edi
jmp 0x1005b5c0
mov ecx, dword [ebx + 0x4c]
cmp ecx, edi
jne 0x1005b3c6
lea edi, [ebp + ebp*2]
shl edi, 4
push edi
call fcn.1024cbd1
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
mov dword [ebx + 0x4c], esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x14], esi
rep stosb byte es:[edi], al
lea edi, [ebp]
mov dword [esp + 0x48], esi
test esi, esi
mov byte [esp + 0xb4], 0x14
je 0x1005b3a9
mov ecx, esi
call fcn.10055680
add esi, 0x30
dec edi
mov byte [esp + 0xb4], 0xd
mov dword [esp + 0x14], esi
jne 0x1005b392
mov dword [ebx + 0x54], ebp
mov dword [ebx + 0x50], ebp
jmp 0x1005b5c0
mov esi, dword [ebx + 0x54]
cmp ebp, esi
jg 0x1005b4cd
cmp eax, ebp
jge 0x1005b440
mov edx, ebp
lea esi, [eax + eax*2]
sub edx, eax
xor eax, eax
shl esi, 4
add esi, ecx
lea ecx, [edx + edx*2]
shl ecx, 4
mov ebx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
mov dword [esp + 0x14], esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec edx
test eax, eax
je 0x1005b431
lea edi, [edx + 1]
mov bl, 0x15
mov dword [esp + 0x48], esi
test esi, esi
mov byte [esp + 0xb4], bl
je 0x1005b41f
mov ecx, esi
call fcn.10055680
add esi, 0x30
dec edi
mov byte [esp + 0xb4], 0xd
mov dword [esp + 0x14], esi
jne 0x1005b409
mov ebx, dword [esp + 0xbc]
mov dword [ebx + 0x50], ebp
jmp 0x1005b5c0
jle 0x1005b438
lea esi, [ebp + ebp*2]
sub eax, ebp
shl esi, 4
add esi, ecx
mov ecx, eax
dec eax
mov dword [esp + 0x14], esi
test ecx, ecx
je 0x1005b438
lea edi, [eax + 1]
lea ecx, [esi + 0x28]
mov byte [esp + 0xb4], 0x1a
call fcn.10090bf0
lea ecx, [esi + 0x24]
mov byte [esp + 0xb4], 0x19
call fcn.10090bf0
lea ecx, [esi + 0x20]
mov byte [esp + 0xb4], 0x18
call fcn.10090bf0
lea ecx, [esi + 0x1c]
mov byte [esp + 0xb4], 0x17
call fcn.10090bf0
lea ecx, [esi + 0x18]
mov byte [esp + 0xb4], 0x16
call fcn.10090bf0
lea ecx, [esi + 0x14]
mov byte [esp + 0xb4], 0xd
call fcn.10090bf0
add esi, 0x30
dec edi
mov dword [esp + 0x14], esi
jne 0x1005b45b
mov dword [ebx + 0x50], ebp
jmp 0x1005b5c0
mov ecx, dword [ebx + 0x58]
cmp ecx, edi
jne 0x1005b4f8
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x1005b4eb
mov ecx, 4
jmp 0x1005b4f8
cmp ecx, 0x400
jle 0x1005b4f8
mov ecx, 0x400
lea eax, [ecx + esi]
cmp ebp, eax
jl 0x1005b501
mov eax, ebp
lea edx, [eax + eax*2]
mov dword [esp + 0x14], eax
shl edx, 4
push edx
call fcn.1024cbd1
mov ecx, dword [ebx + 0x50]
mov esi, dword [ebx + 0x4c]
mov edi, eax
mov dword [esp + 0x4c], eax
lea ecx, [ecx + ecx*2]
add esp, 4
shl ecx, 4
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebx + 0x50]
sub edx, esi
lea esi, [esi + esi*2]
lea ecx, [edx + edx*2]
shl esi, 4
shl ecx, 4
add esi, eax
mov ebx, ecx
xor eax, eax
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
mov dword [esp + 0x84], esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec edx
test eax, eax
je 0x1005b59c
lea edi, [edx + 1]
mov bl, 0x1b
mov dword [esp + 0xa8], esi
test esi, esi
mov byte [esp + 0xb4], bl
je 0x1005b587
mov ecx, esi
call fcn.10055680
add esi, 0x30
dec edi
mov byte [esp + 0xb4], 0xd
mov dword [esp + 0x84], esi
jne 0x1005b56e
mov ebx, dword [esp + 0xbc]
mov eax, dword [ebx + 0x4c]
push eax
call fcn.1024cbfa
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [ebx + 0x4c], ecx
mov dword [ebx + 0x50], ebp
mov dword [ebx + 0x54], edx
mov esi, dword [esp + 0x90]
mov eax, dword [ebx + 0x4c]
lea esi, [esi + esi*2]
shl esi, 4
add esi, eax
mov eax, dword [esp + 0x4c]
mov dword [esi], eax
mov ecx, dword [esp + 0x54]
mov dword [esi + 8], ecx
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0x60]
mov dword [esi + 0xc], edx
mov eax, dword [esp + 0x5c]
push ecx
lea ecx, [esi + 0x14]
mov dword [esi + 0x10], eax
call fcn.10090d80
lea edx, [esp + 0x64]
lea ecx, [esi + 0x18]
push edx
call fcn.10090d80
lea eax, [esp + 0x68]
lea ecx, [esi + 0x1c]
push eax
call fcn.10090d80
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esi + 0x20]
call fcn.10090d80
lea edx, [esp + 0x70]
lea ecx, [esi + 0x24]
push edx
call fcn.10090d80
lea eax, [esp + 0x74]
lea ecx, [esi + 0x28]
push eax
call fcn.10090d80
lea ecx, [esp + 0x18]
call fcn.100bdbf0
lea ecx, [esp + 0x74]
mov byte [esp + 0xb4], 0x20
call fcn.10090bf0
lea ecx, [esp + 0x70]
mov byte [esp + 0xb4], 0x1f
call fcn.10090bf0
lea ecx, [esp + 0x6c]
mov byte [esp + 0xb4], 0x1e
call fcn.10090bf0
lea ecx, [esp + 0x68]
mov byte [esp + 0xb4], 0x1d
call fcn.10090bf0
lea ecx, [esp + 0x64]
mov byte [esp + 0xb4], 0x1c
call fcn.10090bf0
lea ecx, [esp + 0x60]
mov byte [esp + 0xb4], 0
call fcn.10090bf0
push str.Attach
lea ecx, [esp + 0x1c]
call fcn.100bd8c0
test eax, eax
jne 0x1005af99
mov esi, dword [esp + 0x7c]
push ebx
lea ecx, [esi + 0x28]
call fcn.10055760
lea ecx, [esp + 0x18]
mov dword [esi + 0x24], 1
mov dword [esp + 0xb4], 0xffffffff
call fcn.100bc8a0
mov eax, 1
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa8
ret 4