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

Disassembly:
push 0xffffffffffffffff
push 0x101e6978
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
lea ecx, [esp + 0x20]
call fcn.1007f200
lea eax, [esp + 8]
lea ecx, [esp + 0x20]
xor esi, esi
push eax
push ecx
mov dword [esp + 0x54], esi
mov dword [esp + 0x10], esi
call fcn.100592d0
mov ebx, eax
add esp, 8
cmp ebx, esi
jne 0x100573cf
mov eax, dword [0x10282758]
cmp eax, esi
je 0x100573ab
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x54]
push edx
call fcn.10077a80
mov eax, dword [eax]
mov byte [esp + 0x4c], 1
push eax
push str.CSDGsDesTransformRequest::IsGsDesFile1___s__No_Header_
push str.SDTransform
push 0xffffffffffffffff
push 0x10281ec4
call fcn.100de220
add esp, 0x14
lea ecx, [esp + 0x54]
mov byte [esp + 0x4c], 0
call fcn.10078300
lea ecx, [esp + 0x20]
mov dword [esp + 0x4c], 0xffffffff
call fcn.1007f210
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
mov eax, dword [esp + 8]
cmp eax, esi
jge 0x10057447
neg eax
cmp ebx, eax
jbe 0x10057447
mov eax, dword [0x10282758]
cmp eax, esi
je 0x10057423
mov ecx, dword [esp + 0x54]
push ecx
lea ecx, [esp + 0x58]
call fcn.10077a80
mov edx, dword [eax]
mov byte [esp + 0x4c], 2
push edx
push str.CSDGsDesTransformRequest::IsGsDesFile1___s__DistanceToMove___MaxHeaderLen_
push str.SDTransform
push 0xffffffffffffffff
push 0x10281ec4
call fcn.100de220
add esp, 0x14
lea ecx, [esp + 0x54]
mov byte [esp + 0x4c], 0
call fcn.10078300
lea ecx, [esp + 0x20]
mov dword [esp + 0x4c], 0xffffffff
call fcn.1007f210
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
mov eax, dword [0x10282758]
push ebp
mov ebp, dword [esp + 0x58]
cmp eax, esi
push edi
je 0x10057490
push ebp
lea ecx, [esp + 0x28]
call fcn.10077a80
mov eax, dword [eax]
push ebx
push eax
push str.CSDGsDesTransformRequest::IsGsDesFile1___s__dwMaxHeaderLen__lu_
push str.SDTransform
push 0xffffffffffffffff
push 0x10281ec4
mov byte [esp + 0x6c], 3
call fcn.100de220
add esp, 0x18
lea ecx, [esp + 0x24]
mov byte [esp + 0x54], 0
call fcn.10078300
mov eax, dword [esp + 0x64]
mov dword [esp + 0x14], esi
cmp eax, esi
jne 0x100577b9
push esi
push 0x80
push 3
push esi
push 7
push bind
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x24], edi
je 0x100577b9
cmp dword [0x10282758], esi
je 0x10057507
push ebp
lea ecx, [esp + 0x68]
call fcn.10077a80
mov ecx, dword [eax]
mov byte [esp + 0x54], 4
push ecx
push str.CSDGsDesTransformRequest::IsGsDesFile1___s__1
push str.SDTransform
push 0xffffffffffffffff
push 0x10281ec4
call fcn.100de220
add esp, 0x14
lea ecx, [esp + 0x64]
mov byte [esp + 0x54], 0
call fcn.10078300
push ebx
call sub.MFC42u.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x64], esi
je 0x1005776e
mov eax, dword [0x10282758]
test eax, eax
je 0x10057560
push ebp
lea ecx, [esp + 0x24]
call fcn.10077a80
mov edx, dword [eax]
mov byte [esp + 0x54], 5
push edx
push str.CSDGsDesTransformRequest::IsGsDesFile1___s__2
push str.SDTransform
push 0xffffffffffffffff
push 0x10281ec4
call fcn.100de220
add esp, 0x14
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], 0
call fcn.10078300
mov ecx, ebx
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
mov dword [esp + 0x18], 0
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ebx
push esi
push ecx
push edx
call fcn.1005a310
add esp, 0x14
test eax, eax
mov eax, dword [0x10282758]
je 0x1005777a
test eax, eax
je 0x100575e5
push ebp
lea ecx, [esp + 0x24]
call fcn.10077a80
mov ecx, dword [esp + 0x18]
mov edx, dword [eax]
push ebx
push ecx
push edx
push str.CSDGsDesTransformRequest::IsGsDesFile1___s__dwRead_0x_x___0x_x_dwMaxHeaderLen_3
push str.SDTransform
push 0xffffffffffffffff
push 0x10281ec4
mov byte [esp + 0x70], 6
call fcn.100de220
add esp, 0x1c
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], 0
call fcn.10078300
mov eax, dword [esp + 0x2c]
xor ebp, ebp
test eax, eax
jle 0x10057761
lea ecx, [esp + 0x38]
call fcn.10070fb4
mov eax, dword [esp + 0x28]
push 0xffffffffffffffff
mov byte [esp + 0x58], 7
mov ecx, dword [eax + ebp*4]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x3c]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
push esi
call sub.MFC42u.DLL_CByteArray::SetSize
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x38]
push esi
push ecx
mov eax, dword [edx + ebp*4]
push eax
call fcn.1011f300
mov edx, dword [esp + 0x70]
mov esi, dword [esp + 0x4c]
push ebx
lea eax, [esp + 0x30]
push edx
push eax
call fcn.1011efe0
mov ecx, dword [esp + 0x54]
push esi
lea edx, [esp + 0x38]
push ecx
push edx
mov byte [esp + 0x78], 8
call fcn.1011efe0
add esp, 0x24
mov eax, dword [0x10282758]
mov byte [esp + 0x54], 9
test eax, eax
je 0x1005768e
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push eax
push ecx
push str.CSDGsDesTransformRequest::IsGsDesFile1_wstrFileHeadRead___s__wstrFileHeadConfig___s
push str.SDTransform
push 0xffffffffffffffff
push 0x10281ec4
call fcn.100de220
add esp, 0x18
cmp dword [esp + 0x18], esi
jb 0x100576a4
mov edi, dword [esp + 0x3c]
mov ecx, esi
mov esi, dword [esp + 0x64]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x100576e4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0
mov byte [esp + 0x54], 8
call fcn.10078300
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], 7
call fcn.10078300
lea ecx, [esp + 0x38]
mov byte [esp + 0x54], 0
call sub.MFC42u.DLL_CByteArray::CByteArray
mov eax, dword [esp + 0x2c]
inc ebp
cmp ebp, eax
jge 0x1005775d
jmp 0x100575f3
mov eax, dword [0x10282758]
mov dword [esp + 0x14], 1
test eax, eax
je 0x10057733
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x5c]
push eax
call fcn.10077a80
mov ecx, dword [eax]
push ebp
push ecx
push str.CSDGsDesTransformRequest::IsGsDesFile1___s__header___lu__match
push str.SDTransform
push 0xffffffffffffffff
push 0x10281ec4
mov byte [esp + 0x6c], 0xa
call fcn.100de220
add esp, 0x18
lea ecx, [esp + 0x5c]
mov byte [esp + 0x54], 9
call fcn.10078300
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 8
call fcn.10078300
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], 7
call fcn.10078300
lea ecx, [esp + 0x38]
mov byte [esp + 0x54], 0
call sub.MFC42u.DLL_CByteArray::CByteArray
mov esi, dword [esp + 0x64]
push esi
call sub.MFC42u.DLL_operatordelete
mov edi, dword [esp + 0x28]
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100577fc
test eax, eax
je 0x10057761
push ebp
lea ecx, [esp + 0x60]
call fcn.10077a80
mov edx, dword [eax]
mov byte [esp + 0x54], 0xb
push edx
push str.CSDGsDesTransformRequest::IsGsDesFile1___s__ReadFile_fail
push str.SDTransform
push 0xffffffffffffffff
push 0x10281ec4
call fcn.100de220
add esp, 0x14
lea ecx, [esp + 0x5c]
mov byte [esp + 0x54], 0
call fcn.10078300
jmp 0x10057761
cmp dword [0x10282758], esi
je 0x10057819
push ebp
lea ecx, [esp + 0x60]
call fcn.10077a80
mov eax, dword [eax]
mov byte [esp + 0x54], 0xc
push eax
push str.CSDGsDesTransformRequest::IsGsDesFile1___s__Open_fail
push str.SDTransform
push 0xffffffffffffffff
push 0x10281ec4
call fcn.100de220
add esp, 0x14
lea ecx, [esp + 0x5c]
mov byte [esp + 0x54], 0
call fcn.10078300
jmp 0x10057819
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10057819
mov eax, dword [esp + 0x60]
test eax, eax
je 0x10057819
mov edx, dword [esp + 0x10]
xor ecx, ecx
test edx, edx
setl cl
mov dword [eax], ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x54], 0xffffffff
call fcn.1007f210
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret