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

Disassembly:
push 0xffffffffffffffff
push 0x42448a
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x4372c0]
xor eax, esp
mov dword [esp + 0x2d0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4372c0]
xor eax, esp
push eax
lea eax, [esp + 0x2ec]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x2f4], ebp
xor eax, eax
mov byte [esp + 0x17], 0
mov dword [esp + 0x20], ebp
mov dword [esp + 0xb4], 7
mov dword [esp + 0xb0], ebp
mov word [esp + 0xa0], ax
lea ecx, [esp + 0x5c]
push ecx
mov byte [esp + 0x2f8], 1
call fcn.004095a0
push 0x104
lea edx, [esp + 0xd8]
push edx
mov byte [esp + 0x2fc], 2
call dword [0x4270d4]
test eax, eax
jbe 0x407978
lea eax, [esp + 0xd4]
push eax
call dword [0x4270d8]
cmp dword [esp + 0x314], 8
mov eax, dword [esp + 0x300]
jae 0x407990
lea eax, [esp + 0x300]
lea ecx, [esp + 0x30]
push ecx
push str.MSIDBOPEN_READONLY
push eax
call fcn.00412a68
test eax, eax
jne 0x407af1
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x24]
push edx
push str.SELECT_FileName_FROM_File
push eax
call fcn.00412a6e
test eax, eax
jne 0x407ae7
mov ecx, dword [esp + 0x24]
push ebp
push ecx
call fcn.00412a74
test eax, eax
jne 0x407add
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.00412a7a
test eax, eax
jne 0x407add
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x20]
push ecx
push 0x42aab4
push 1
push edx
mov dword [esp + 0x30], ebp
call fcn.00412a80
cmp eax, 0xea
jne 0x407abc
mov eax, dword [esp + 0x20]
inc eax
xor ecx, ecx
mov dword [esp + 0x20], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412a98
mov ecx, dword [esp + 0x30]
add esp, 4
mov edi, eax
lea eax, [esp + 0x20]
push eax
push edi
push 1
push ecx
call fcn.00412a80
test eax, eax
jne 0x407ab3
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x407a52
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [esp + 0xa0]
call fcn.00409980
push 1
mov eax, esi
call fcn.00409b20
cmp eax, 0xffffffff
je 0x407a88
inc eax
xor ebx, ebx
call fcn.00409130
xor ebp, ebp
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 4]
lea ebx, [eax + 4]
lea edx, [esp + 0x9c]
push edx
push ecx
push eax
call fcn.0040a3a0
lea ecx, [esp + 0x5c]
mov esi, eax
call fcn.0040a450
mov dword [ebx], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
push edi
call fcn.0041389a
add esp, 4
mov edx, dword [esp + 0x2c]
push edx
call fcn.00412a86
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x2c]
push eax
push ecx
call fcn.00412a7a
test eax, eax
je 0x4079ee
mov edx, dword [esp + 0x24]
push edx
call fcn.00412a86
mov eax, dword [esp + 0x30]
push eax
call fcn.00412a86
lea ecx, [esp + 0x38]
push ecx
push 0x20019
push ebp
push 0x42a6f0
push 0x80000002
call dword [0x427034]
test eax, eax
jne 0x407f05
mov ecx, dword [esp + 0x38]
mov edi, dword [0x427030]
lea edx, [esp + 0x28]
push edx
push ebp
lea eax, [esp + 0x3c]
push eax
push ebp
push str.PendingFileRenameOperations
push ecx
mov dword [esp + 0x40], ebp
call edi
test eax, eax
jne 0x407f05
cmp dword [esp + 0x34], 7
jne 0x407f05
mov eax, dword [esp + 0x28]
cmp eax, 2
jb 0x407f05
push eax
call fcn.00412a98
add esp, 4
mov byte [esp + 0x18], 0
mov edx, dword [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x60]
mov dword [esp + 0x5c], eax
call fcn.0040a920
mov byte [esp + 0x2f4], 3
mov esi, dword [esp + 0x54]
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x28]
push eax
push esi
lea ecx, [esp + 0x3c]
push ecx
push ebp
push str.PendingFileRenameOperations
push edx
call edi
test eax, eax
jne 0x407ecb
mov eax, dword [esp + 0x28]
shr eax, 1
push eax
xor ecx, ecx
mov eax, esi
mov ebx, 7
xor edi, edi
lea esi, [esp + 0xbc]
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd0], edi
mov word [esp + 0xc0], cx
call fcn.00409980
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x2f8], 4
call fcn.00409300
xor eax, eax
mov dword [esp + 0x98], ebx
mov dword [esp + 0x94], edi
mov word [esp + 0x84], ax
lea ebx, [esp + 0x78]
mov edi, esi
mov byte [esp + 0x2f4], 6
call fcn.004091c0
mov esi, dword [eax]
mov ebp, dword [eax + 4]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebp
jmp 0x407c30
lea ebx, [esp + 0x78]
lea edi, [esp + 0xb8]
call fcn.00409210
mov edi, eax
cmp esi, 0xfffffffc
je 0x407c54
test esi, esi
je 0x407c4f
cmp esi, dword [edi]
je 0x407c54
call fcn.00413e53
cmp ebp, dword [edi + 4]
je 0x407d02
cmp esi, 0xfffffffc
je 0x407c88
test esi, esi
jne 0x407c6b
call fcn.00413e53
cmp dword [esi + 0x18], 8
jb 0x407c76
mov eax, dword [esi + 4]
jmp 0x407c79
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
lea edx, [eax + ecx*2]
cmp ebp, edx
jb 0x407c88
call fcn.00413e53
cmp word [ebp], 0
jne 0x407cd3
cmp dword [esp + 0x94], 0
je 0x407caa
lea eax, [esp + 0x80]
push eax
lea ebx, [esp + 0x40]
call fcn.00409500
push 0
mov eax, 0x42aab4
lea esi, [esp + 0x84]
call fcn.00409980
lea esi, [esp + 0x18]
call fcn.00409680
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jmp 0x407c30
lea esi, [esp + 0x18]
call fcn.00409640
movzx ecx, word [eax]
push ecx
lea esi, [esp + 0x84]
call fcn.004090a0
lea esi, [esp + 0x18]
call fcn.00409680
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jmp 0x407c30
cmp dword [esp + 0x94], 0
je 0x407d1d
lea edx, [esp + 0x80]
push edx
lea ebx, [esp + 0x40]
call fcn.00409500
mov esi, dword [esp + 0x48]
cmp esi, dword [esp + 0x4c]
jbe 0x407d2c
call fcn.00413e53
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x18], edi
mov ebp, esi
mov esi, dword [esp + 0x4c]
cmp dword [esp + 0x48], esi
jbe 0x407d45
call fcn.00413e53
xor ebx, ebx
cmp edi, ebx
je 0x407d51
cmp edi, dword [esp + 0x3c]
je 0x407d56
call fcn.00413e53
cmp ebp, esi
je 0x407e39
mov eax, dword [esp + 0x70]
mov eax, dword [eax]
mov ebx, dword [esp + 0x5c]
mov edi, eax
lea ebx, [ebx]
mov esi, dword [esp + 0x70]
test ebx, ebx
je 0x407d7e
cmp ebx, dword [esp + 0x5c]
je 0x407d83
call fcn.00413e53
cmp edi, esi
je 0x407e10
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x407daf
call fcn.00413e53
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x407da4
call fcn.00413e53
cmp dword [ebp + 0x18], 8
jb 0x407db3
mov esi, dword [ebp + 4]
jmp 0x407db6
mov eax, dword [eax]
jmp 0x407d9a
lea esi, [ebp + 4]
test ebx, ebx
jne 0x407dd6
call fcn.00413e53
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x407dcb
call fcn.00413e53
cmp dword [edi + 0x20], 8
jb 0x407dda
mov eax, dword [edi + 0xc]
jmp 0x407ddd
mov eax, dword [ebx]
jmp 0x407dc1
lea eax, [edi + 0xc]
push esi
push eax
call fcn.00413a3d
add esp, 8
test eax, eax
je 0x407e0b
test ebx, ebx
jne 0x407e07
call fcn.00413e53
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x407e00
call fcn.00413e53
mov edi, dword [edi]
jmp 0x407d70
mov eax, dword [ebx]
jmp 0x407df6
mov byte [esp + 0x17], 1
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x407e35
call fcn.00413e53
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x407e29
call fcn.00413e53
mov edi, dword [esp + 0x18]
add ebp, 0x1c
jmp 0x407d36
mov eax, dword [eax]
jmp 0x407e1f
mov esi, 8
cmp dword [esp + 0x98], esi
jb 0x407e57
mov ecx, dword [esp + 0x84]
push ecx
call fcn.00412b13
add esp, 4
mov eax, dword [esp + 0x48]
xor edx, edx
mov dword [esp + 0x98], 7
mov dword [esp + 0x94], ebx
mov word [esp + 0x84], dx
cmp eax, ebx
je 0x407e99
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x4c]
push ecx
call fcn.0040abf0
mov edx, dword [esp + 0x4c]
add esp, 4
push edx
call fcn.00412b13
add esp, 4
mov eax, dword [esp + 0x3c]
push eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call fcn.00412b13
add esp, 4
cmp dword [esp + 0xd0], esi
jb 0x407ecb
mov ecx, dword [esp + 0xbc]
push ecx
call fcn.00412b13
add esp, 4
mov byte [esp + 0x2f4], 2
mov esi, dword [esp + 0x58]
test esi, esi
je 0x407f05
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x407f05
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x407f05
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
lea ebx, [esp + 0x5c]
call fcn.0040a340
mov eax, dword [esp + 0x70]
push eax
call fcn.00412b13
mov ecx, dword [esp + 0x60]
add esp, 4
xor esi, esi
push ecx
mov dword [esp + 0x74], esi
call fcn.00412b13
mov edi, 8
add esp, 4
cmp dword [esp + 0xb4], edi
jb 0x407f4c
mov edx, dword [esp + 0xa0]
push edx
call fcn.00412b13
add esp, 4
xor eax, eax
mov dword [esp + 0xb4], 7
mov dword [esp + 0xb0], esi
mov word [esp + 0xa0], ax
cmp dword [esp + 0x314], edi
jb 0x407f81
mov ecx, dword [esp + 0x300]
push ecx
call fcn.00412b13
add esp, 4
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x2ec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2d0]
xor ecx, esp
call fcn.00412b1e
add esp, 0x2e4
ret