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

Disassembly:
push 0xffffffffffffffff
push 0x100b64d8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100e87b8]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x20], ebx
mov eax, dword [ebx + 0x170]
mov edx, dword [eax + 0xb4]
lea ecx, [ebx + 0x170]
xor edi, edi
mov dword [esp + 0x18], edi
call edx
mov esi, eax
mov ecx, esi
call fcn.100163b0
test eax, eax
jbe 0x10049969
mov ebp, dword [esp + 0x38]
lea esp, [esp]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x100495c3
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x100495c9
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 4]
cmp dword [ecx + edi*4], 0
je 0x1004961f
test ecx, ecx
je 0x100495e2
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x100495e8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 4]
mov ecx, dword [eax + edi*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x90]
call eax
cmp eax, ebp
jne 0x1004961f
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1004960f
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x10049615
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 4]
mov edx, dword [ecx + edi*4]
mov dword [esp + 0x18], edx
mov ecx, esi
add edi, 1
call fcn.100163b0
cmp edi, eax
jb 0x100495b0
cmp dword [esp + 0x18], 0
je 0x10049969
mov edi, dword [esp + 0x34]
test edi, edi
je 0x10049969
mov esi, dword [ebx + 0x224]
test esi, esi
je 0x100499bf
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
test eax, eax
je 0x100499bf
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
cmp ebp, 0xffffffff
mov esi, eax
jne 0x1004982c
mov eax, dword [edi]
mov edx, dword [eax + 0x90]
mov ecx, edi
call edx
cmp eax, ebp
je 0x100496a0
push 0x691
push 0x100c8078
push 0
call fcn.10001230
add esp, 0xc
jmp 0x100499bf
test esi, esi
je 0x10049962
jmp 0x100496b4
mov edi, dword [esp + 0x34]
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
mov ecx, esi
call edx
push eax
lea ecx, [esp + 0x3c]
call fcn.1007f440
lea ecx, [esp + 0x38]
mov dword [esp + 0x2c], 1
call fcn.1007ed80
test eax, eax
jle 0x100496f9
lea ecx, [esp + 0x38]
call fcn.1007ee00
push eax
call dword [sym.imp.MSVCR80.dll__wtoi64]
mov ebx, edx
add esp, 4
mov ebp, eax
mov dword [esp + 0x1c], ebx
jmp 0x10049702
or ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
mov ebx, ebp
mov eax, dword [edi]
mov edx, dword [eax + 0x1c]
mov ecx, edi
call edx
mov edi, eax
test edi, edi
je 0x10049800
cmp ebx, 0xffffffff
jl 0x10049800
jg 0x10049729
cmp ebp, 0xffffffff
jbe 0x10049800
mov eax, dword [edi]
mov edx, dword [eax + 0x48]
push 2
mov ecx, edi
call edx
test eax, eax
je 0x10049749
mov eax, dword [edi]
mov edx, dword [eax + 0x68]
mov ecx, edi
call edx
cmp ebp, eax
jne 0x10049749
cmp ebx, edx
je 0x1004975d
mov eax, dword [edi]
mov edx, dword [eax + 0x20]
mov ecx, edi
call edx
mov edi, eax
test edi, edi
jne 0x10049715
jmp 0x10049800
mov ebx, dword [esp + 0x20]
lea eax, [esp + 0x38]
push eax
push edi
mov ecx, ebx
call fcn.10048c60
test eax, eax
je 0x100497b1
lea ecx, [esp + 0x38]
call fcn.1007edb0
test eax, eax
jne 0x100497b1
push 0x100c836c
lea ecx, [esp + 0x3c]
call fcn.1007ef20
mov edi, dword [esi]
lea ecx, [esp + 0x38]
add edi, 0x34
call fcn.1007ee00
mov edx, dword [edi]
push eax
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
push 1
push 0x40
mov ecx, esi
call edx
jmp 0x10049800
mov eax, dword [ebx + 0x128]
mov ebx, dword [eax]
mov edx, dword [edi]
mov eax, dword [edx + 0x78]
mov ecx, edi
add ebx, 0x2c
call eax
mov edx, dword [esp + 0x1c]
movzx ecx, al
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [eax + 0x128]
push edx
mov edx, dword [ebx]
push ebp
push 0xffffffffffffffef
push 0x100c7fa8
push 0x6a0
push str..DriveRestoreDocBase.cpp
push ecx
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
add esp, 0x20
push 0x100c0988
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
lea ecx, [esp + 0x38]
mov esi, eax
mov dword [esp + 0x2c], 0xffffffff
call fcn.1007ece0
test esi, esi
jne 0x100496b0
lea eax, [esi + 1]
jmp 0x100499c1
test esi, esi
je 0x10049962
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
mov ecx, esi
call edx
push eax
lea ecx, [esp + 0x18]
call fcn.1007f440
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 2
call fcn.1007ed80
test eax, eax
jle 0x1004993e
lea ecx, [esp + 0x14]
call fcn.1007ee00
push eax
call dword [sym.imp.MSVCR80.dll__wtoi64]
mov ebp, edx
add esp, 4
cmp ebp, 0xffffffff
mov ebx, eax
jl 0x1004993e
jg 0x1004988b
cmp ebx, 0xffffffff
jbe 0x1004993e
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x68]
call edx
cmp ebx, eax
jne 0x1004993e
cmp ebp, edx
jne 0x1004993e
lea eax, [esp + 0x14]
push eax
push edi
mov edi, dword [esp + 0x28]
mov ecx, edi
call fcn.10048c60
test eax, eax
jne 0x1004990a
mov ecx, dword [edi + 0x128]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x78]
add edi, 0x2c
call eax
mov edx, dword [esp + 0x20]
movzx ecx, al
mov eax, dword [edx + 0x128]
push ecx
mov ecx, dword [edi]
push ebp
push ebx
push 0xffffffffffffffef
push 0x100c7fa8
push 0x6c1
push str..DriveRestoreDocBase.cpp
push eax
call ecx
mov edx, dword [esi]
mov eax, dword [edx + 0x34]
add esp, 0x20
push 0x100c0988
mov ecx, esi
call eax
jmp 0x1004993a
push 0x100c836c
lea ecx, [esp + 0x18]
call fcn.1007ef20
mov edi, dword [esi]
lea ecx, [esp + 0x14]
add edi, 0x34
call fcn.1007ee00
mov edx, dword [edi]
push eax
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
push 1
push 0x40
mov ecx, esi
call edx
mov edi, dword [esp + 0x34]
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
lea ecx, [esp + 0x14]
mov esi, eax
mov dword [esp + 0x2c], 0xffffffff
call fcn.1007ece0
test esi, esi
jne 0x10049834
mov eax, 1
jmp 0x100499c1
push 0x100c8078
lea ecx, [esp + 0x38]
call fcn.1007f3f0
mov eax, dword [0x100e87f0]
test eax, eax
mov dword [esp + 0x2c], 0
je 0x100499ae
mov esi, dword [eax]
push 0x681
lea ecx, [esp + 0x38]
add esi, 0x24
call fcn.1007ee00
mov ecx, dword [esi]
push eax
mov eax, dword [0x100e87f0]
push str.Assert_Failed___
push eax
call ecx
add esp, 0x10
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0xffffffff
call fcn.1007ece0
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8