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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa90
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0xa38], ebx
cmp dword [ebx + 0x7c], 0
jne 0x10128186
call fcn.10124b20
test eax, eax
je 0x10127cd2
mov eax, dword [ebx + 0xe4]
mov dword [ebx + 0x7c], 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
je 0x10128170
lea eax, [ebp - 0xa30]
mov dword [ebp - 0xa30], 0
push eax
push 0x10216a9c
mov ecx, 0x1025a670
call fcn.1017de00
mov edi, dword [ebp - 0xa30]
test edi, edi
je 0x10127c6f
cmp dword [ebx + 0xc8], 8
lea ecx, [ebx + 0xb4]
mov dword [ebp - 0xa50], 0
mov dword [ebp - 0xa4c], 0
mov dword [ebp - 0xa48], 0
jb 0x10127801
mov ecx, dword [ebx + 0xb4]
test ecx, ecx
jne 0x10127809
xor esi, esi
jmp 0x10127812
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov eax, dword [edi]
push esi
push edi
call dword [eax + 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebx + 0x60], 8
lea eax, [ebx + 0x4c]
jb 0x1012782b
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xa2c]
call fcn.10002490
mov eax, dword [ebp - 0xa30]
mov dword [ebp - 0xa3c], eax
lea eax, [ebp - 0xa50]
push eax
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0xa34]
push eax
call fcn.100057a0
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
add esp, 0xc
mov eax, dword [eax]
test eax, eax
jne 0x10127870
xor esi, esi
jmp 0x10127875
push eax
call edi
mov esi, eax
mov ecx, dword [ebp - 0xa3c]
push esi
push ecx
mov eax, dword [ecx]
call dword [eax + 0x18]
mov eax, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push esi
call eax
mov edx, dword [ebp - 0xa34]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101278aa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xa2c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101278c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebx + 0x78], 8
lea eax, [ebx + 0x64]
jb 0x101278d2
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xa2c]
call fcn.10002490
mov eax, dword [ebp - 0xa30]
mov dword [ebp - 0xa34], eax
lea eax, [ebp - 0xa50]
push eax
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0xa3c]
push eax
call fcn.100057a0
add esp, 0xc
mov eax, dword [eax]
test eax, eax
jne 0x10127911
xor esi, esi
jmp 0x10127916
push eax
call edi
mov esi, eax
mov ecx, dword [ebp - 0xa34]
push esi
push ecx
mov eax, dword [ecx]
call dword [eax + 0x1c]
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
mov edx, dword [ebp - 0xa3c]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1012794a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xa2c]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10127968
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 0x88]
mov dword [ebp - 0xa2c], 0
cmp eax, 5
ja case.default.0x1012797d
jmp dword [eax*4 + 0x101281a4]
push 0x9cd6
lea ecx, [ebp - 0xa34]
call fcn.10002490
lea ecx, [ebp - 0xa2c]
push dword [eax]
call fcn.10122ba0
lea ecx, [ebp - 0xa34]
call fcn.10007e10
mov esi, dword [ebp - 0xa2c]
jmp 0x101279cf
push 0x9cd7
jmp 0x10127989
push 0x9cd8
jmp 0x10127989
push 0
call esi
push 0x10202940
call edi
mov esi, eax
mov ecx, dword [ebp - 0xa30]
push esi
push ecx
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [ebp - 0xa30]
push dword [ebx + 0x80]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x2c]
cmp dword [ebx + 0xc8], 8
lea eax, [ebx + 0xb4]
jb 0x101279ff
mov eax, dword [eax]
push str.diagnosescan
push eax
call sub.msvcrt.dll__wcsicmp
add esp, 8
test eax, eax
jne 0x10127a15
push 5
jmp 0x10127a8d
lea edi, [ebx + 0xcc]
push 0x10206c68
push edi
call fcn.101073c0
add esp, 8
test al, al
jne 0x10127a8b
push 0x10210bb8
push edi
call fcn.101073c0
add esp, 8
test al, al
jne 0x10127a8b
push 0x10205244
push edi
call fcn.101073c0
add esp, 8
test al, al
jne 0x10127a8b
push 0x1020a68c
push edi
call fcn.101073c0
add esp, 8
test al, al
jne 0x10127a8b
push 0x10216ac8
push edi
call fcn.101073c0
add esp, 8
test al, al
jne 0x10127a8b
push 0x1020f654
push edi
call fcn.101073c0
add esp, 8
test al, al
jne 0x10127a8b
push 4
jmp 0x10127a8d
push 3
mov eax, dword [ebp - 0xa30]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebx + 0xe4]
push dword [ebp - 0xa30]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebx + 0x94]
cmp eax, 0xffffffff
je 0x10127bee
mov dword [ebp - 0xa78], eax
lea edx, [ebp - 0xa80]
mov eax, dword [ebp - 0xa30]
mov ecx, 0x13
push edx
mov word [ebp - 0xa80], cx
push str.6661
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
cmp dword [ebx + 0xac], 8
lea eax, [ebx + 0x98]
jb 0x10127af5
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xa90]
call fcn.101221a0
mov eax, dword [ebp - 0xa30]
lea edx, [ebp - 0xa90]
push edx
push str.6662
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
push 0x3e8
lea eax, [ebp - 0x9dc]
push eax
push dword [0x10257d10]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor eax, eax
mov word [ebp - 0xa60], ax
lea eax, [ebp - 0xa60]
push eax
call edi
mov eax, 8
mov word [ebp - 0xa60], ax
lea eax, [ebp - 0x9dc]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0xa58], eax
test eax, eax
jne 0x10127b82
mov eax, 0xa
mov dword [ebp - 0xa58], 0x8007000e
mov word [ebp - 0xa60], ax
mov eax, dword [ebp - 0xa30]
lea edx, [ebp - 0xa60]
push edx
push str.6663
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, 0x13
lea edx, [ebp - 0xa70]
mov word [ebp - 0xa70], ax
mov eax, dword [ebx + 0xb0]
mov dword [ebp - 0xa68], eax
mov eax, dword [ebp - 0xa30]
push edx
push str.6664
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea eax, [ebp - 0xa70]
push eax
call edi
lea eax, [ebp - 0xa60]
push eax
call edi
lea eax, [ebp - 0xa90]
push eax
call edi
lea eax, [ebp - 0xa80]
push eax
call edi
mov eax, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push esi
call eax
mov esi, dword [ebp - 0xa50]
test esi, esi
je 0x10127c6f
mov edi, dword [ebp - 0xa4c]
cmp esi, edi
je 0x10127c3c
or ebx, 0xffffffff
lea ecx, [ecx]
mov edx, dword [esi]
mov eax, ebx
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10127c29
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, edi
jne 0x10127c10
mov esi, dword [ebp - 0xa50]
mov ebx, dword [ebp - 0xa38]
mov ecx, dword [ebp - 0xa48]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10127c65
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10128199
push ecx
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
lea eax, [ebp - 0xa2c]
mov dword [ebp - 0xa2c], 0
push eax
mov ecx, ebx
call fcn.10124840
mov esi, dword [ebp - 0xa2c]
test esi, esi
je 0x10127cad
mov eax, dword [esi]
push ebx
push dword [ebx + 0xe4]
push esi
call dword [eax + 0x1c]
xor ebx, ebx
test eax, eax
mov eax, dword [esi]
push esi
setns bl
call dword [eax + 8]
jmp 0x10127caf
xor ebx, ebx
mov ecx, dword [ebp - 0xa30]
test ecx, ecx
je 0x10127cbf
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0xf8]
test ecx, ecx
je 0x10128186
mov dword [ebp - 0xa40], 1
lea edx, [ebp - 0xa40]
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0xc]
mov ecx, dword [ebx + 8]
mov eax, 0x78787879
sub ecx, dword [ebx + 4]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x10127d2c
cmp dword [ebp - 0xa40], eax
je 0x10127d2c
mov eax, dword [ebx + 0x1c]
cmp eax, dword [ebx + 0x20]
jne 0x10127d2c
mov eax, dword [ebx + 0x34]
cmp eax, dword [ebx + 0x38]
je 0x10128186
lea edx, [ebx + 0xb4]
mov dword [ebx + 0x7c], 1
cmp dword [edx + 0x14], 8
jb 0x10127d41
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x9e4], 0
xor eax, eax
mov dword [ebp - 0x9e0], 7
mov word [ebp - 0x9f4], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10127d63
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x9f4]
call fcn.100070c0
lea eax, [ebp - 0xa0c]
mov dword [ebp - 0xa28], 0x4c
push eax
mov dword [ebp - 0xa24], 0x100
mov dword [ebp - 0xa1c], 0
mov dword [ebp - 0xa20], 0xffffffff
mov dword [ebp - 0xa18], 0
mov dword [ebp - 0xa14], 0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [ebx + 0x88]
mov eax, dword [ebx + 0x84]
mov dword [ebp - 0xa14], ecx
mov ecx, dword [ebx + 0x8c]
mov dword [ebp - 0xa10], ecx
mov ecx, dword [ebx + 0x90]
mov dword [ebp - 0xa20], eax
mov eax, 0x78787879
mov dword [ebp - 0x9f8], ecx
mov ecx, dword [ebx + 8]
sub ecx, dword [ebx + 4]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x10127e29
cmp dword [ebp - 0xa40], eax
je 0x10127e29
mov eax, dword [ebx + 0x34]
cmp eax, dword [ebx + 0x38]
jne 0x10127e29
mov eax, dword [ebx + 0x1c]
cmp eax, dword [ebx + 0x20]
je 0x10127e3c
cmp dword [ebx + 0x80], 0
mov dword [ebp - 0xa1c], 1
jne 0x10127e46
mov dword [ebp - 0xa1c], 0
push 0x10210418
lea eax, [ebp - 0xa38]
push eax
lea ecx, [ebx + 0x1c]
call fcn.10124920
push eax
lea eax, [ebp - 0xa2c]
push eax
call fcn.10007f40
mov edx, dword [ebp - 0xa38]
or edi, 0xffffffff
add esp, 0xc
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10127e8a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebx + 0x34]
push 0x10210418
lea ecx, [ebp - 0xa34]
mov dword [ebp - 0xa3c], eax
push ecx
mov ecx, eax
call fcn.10124920
push eax
lea eax, [ebp - 0xa38]
push eax
call fcn.10007f40
add esp, 0xc
lea ecx, [ebp - 0xa2c]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.10002970
mov edx, dword [ebp - 0xa38]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10127ee4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xa34]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10127f01
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 0xf8]
lea edx, [ebp - 0xa44]
mov dword [ebp - 0xa44], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
push dword [ebp - 0xa44]
lea ecx, [ebp - 0xa2c]
call fcn.10002800
cmp dword [ebx + 0x5c], 0
mov edi, dword [ebp - 0xa2c]
je 0x10127f78
cmp dword [ebp - 0xa1c], 0
je 0x10127f78
cmp dword [ebx + 0x78], 8
lea eax, [ebx + 0x64]
jb 0x10127f4f
mov eax, dword [eax]
cmp dword [ebx + 0x60], 8
lea ecx, [ebx + 0x4c]
jb 0x10127f5a
mov ecx, dword [ecx]
push edi
push eax
push ecx
lea eax, [ebx + 4]
mov ecx, 0x1025a600
push eax
push dword [ebp - 0xa28]
lea eax, [ebp - 0xa28]
push eax
call fcn.1017ffe0
lea ecx, [ebx + 0x1c]
call fcn.10124220
mov esi, dword [ebx + 0x10]
cmp esi, dword [ebx + 0x14]
je 0x10128105
lea esp, [esp]
push dword [esi + 0x3c]
mov ecx, 0x1025b450
call fcn.10008cd0
mov ecx, dword [esi + 0x30]
mov dword [ebp - 0xa38], eax
cmp ecx, 0x40000
ja 0x101280c8
je 0x101280ad
cmp ecx, 0x10000
je 0x10127ffa
cmp ecx, 0x30000
jne 0x101280e9
cmp dword [esi + 0x38], 0
jne 0x101280d0
cmp dword [esi + 0x2c], 8
lea eax, [esi + 0x18]
jb 0x10127fe1
mov eax, dword [eax]
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x10127feb
mov ecx, dword [esi]
push eax
push ecx
call fcn.100de420
add esp, 8
jmp 0x101280d0
cmp dword [esi + 0x38], 0
jne 0x101280d0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1012800e
mov eax, dword [esi]
push 1
push eax
call fcn.100d9c10
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x14
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10128036
mov eax, dword [esi]
push 0x103
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.101ef1c0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.101e7180
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp dword [esi + 0x40], 0
je 0x101280d0
lea eax, [ebp - 0x20c]
push eax
call fcn.100dcd90
add esp, 4
test eax, eax
je 0x101280d0
lea eax, [ebp - 0x20c]
push 1
push eax
call fcn.100dd310
add esp, 8
test eax, eax
jne 0x101280d0
lea eax, [ebp - 0x20c]
push eax
call fcn.100de660
add esp, 4
jmp 0x101280d0
cmp dword [esi + 0x38], 0
jne 0x101280d0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x101280bd
mov eax, dword [esi]
push eax
call fcn.100d9de0
add esp, 4
jmp 0x101280d0
cmp ecx, 0x80000
jne 0x101280e9
cmp dword [esi + 0x34], 0
je 0x101280e9
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x101280e0
mov eax, dword [esi]
push eax
call fcn.100d9640
add esp, 4
push dword [ebp - 0xa38]
mov ecx, 0x1025b450
call fcn.10008cd0
add esi, 0x44
cmp esi, dword [ebx + 0x14]
jne 0x10127f90
mov ecx, dword [ebp - 0xa3c]
call fcn.10124220
push dword [ebp - 0xa44]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10128134
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x9e0]
cmp edx, 8
jb 0x10128170
mov ecx, dword [ebp - 0x9f4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10128166
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012819e
push edx
push ecx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
call fcn.101e6c40
call fcn.101e6c40
nop
test byte [ecx + 0x12], bh
adc byte [ecx + edi*2 + 2041843730], al
adc dl, byte [eax]
mov ah, 0x79
adc dl, byte [eax]
mov ebx, 0xbb101279
jns 269648333
adc ah, cl
int3
cld