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

Disassembly:
push 0xffffffffffffffff
push 0x450938
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x466a78]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebp, ecx
push 1
call fcn.0041fa17
call fcn.00425212
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40d06c
push 0x80004005
call fcn.004010d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x80], ebx
call fcn.00425212
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40d09d
push 0x80004005
call fcn.004010d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x80], 1
call fcn.00425212
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40d0cf
push 0x80004005
call fcn.004010d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [ebp + 0x78]
mov byte [esp + 0x84], 2
call fcn.004210fc
lea edx, [esp + 0x1c]
push edx
lea ecx, [ebp + 0xcc]
call fcn.004210fc
lea eax, [esp + 0x18]
push eax
lea ecx, [ebp + 0x174]
call fcn.004210fc
mov edi, dword [esp + 0x20]
mov esi, 0xf
mov eax, edi
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x40d130
sub eax, ecx
push eax
push edi
lea ecx, [esp + 0x64]
call fcn.00402700
push 0xc
push str.CURRENT_PATH
lea ecx, [esp + 0x48]
mov byte [esp + 0x88], 3
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
call fcn.00402700
push 0x11
push str.BUILD_INFORMATION
lea ecx, [esp + 0x2c]
mov byte [esp + 0x88], 4
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00402700
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x44]
push eax
lea edx, [esp + 0x2c]
lea ecx, [ebp + 0x31c]
push edx
mov byte [esp + 0x8c], 5
call fcn.0040aa50
mov edi, 0x10
cmp dword [esp + 0x3c], edi
jb 0x40d1c8
mov eax, dword [esp + 0x28]
push eax
call fcn.0041c7f7
add esp, 4
cmp dword [esp + 0x58], edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
jb 0x40d1e7
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0041c7f7
add esp, 4
cmp dword [esp + 0x74], edi
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
mov byte [esp + 0x80], 2
jb 0x40d20e
mov edx, dword [esp + 0x60]
push edx
call fcn.0041c7f7
add esp, 4
mov edi, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x40d223
sub eax, ecx
push eax
push edi
lea ecx, [esp + 0x64]
call fcn.00402700
push 0xb
push str.LATEST_PATH
lea ecx, [esp + 0x2c]
mov byte [esp + 0x88], 6
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00402700
push 0x11
push str.BUILD_INFORMATION
lea ecx, [esp + 0x48]
mov byte [esp + 0x88], 7
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
call fcn.00402700
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x48]
push edx
lea ecx, [ebp + 0x31c]
mov byte [esp + 0x8c], 8
call fcn.0040aa50
mov edi, 0x10
cmp dword [esp + 0x58], edi
jb 0x40d2bb
mov eax, dword [esp + 0x44]
push eax
call fcn.0041c7f7
add esp, 4
cmp dword [esp + 0x3c], edi
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
jb 0x40d2da
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0041c7f7
add esp, 4
cmp dword [esp + 0x74], edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
mov byte [esp + 0x80], 2
jb 0x40d301
mov edx, dword [esp + 0x60]
push edx
call fcn.0041c7f7
add esp, 4
mov edi, dword [esp + 0x18]
mov eax, edi
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x40d316
sub eax, ecx
push eax
push edi
lea ecx, [esp + 0x64]
call fcn.00402700
push 0x13
push str.LAST_OUTPUT_VERSION
lea ecx, [esp + 0x2c]
mov byte [esp + 0x88], 9
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00402700
push 0x11
push str.BUILD_INFORMATION
lea ecx, [esp + 0x48]
mov byte [esp + 0x88], 0xa
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
call fcn.00402700
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x48]
lea edi, [ebp + 0x31c]
push edx
mov ecx, edi
mov byte [esp + 0x8c], 0xb
call fcn.0040aa50
cmp dword [esp + 0x58], 0x10
jb 0x40d3ac
mov eax, dword [esp + 0x44]
push eax
call fcn.0041c7f7
add esp, 4
cmp dword [esp + 0x3c], 0x10
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
jb 0x40d3cc
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0041c7f7
add esp, 4
cmp dword [esp + 0x74], 0x10
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
mov byte [esp + 0x80], 2
jb 0x40d3f4
mov edx, dword [esp + 0x60]
push edx
call fcn.0041c7f7
add esp, 4
mov eax, dword [ebp + 0x318]
push 0xd
push str.DIVISION_SIZE
lea ecx, [esp + 0x64]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
call fcn.00402700
push 0x11
push str.BUILD_INFORMATION
lea ecx, [esp + 0x48]
mov byte [esp + 0x88], 0xc
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
call fcn.00402700
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x48]
push eax
mov ecx, edi
mov byte [esp + 0x8c], 0xd
call fcn.0040b210
cmp dword [esp + 0x58], 0x10
jb 0x40d470
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0041c7f7
add esp, 4
cmp dword [esp + 0x74], 0x10
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
mov byte [esp + 0x80], 2
jb 0x40d498
mov edx, dword [esp + 0x60]
push edx
call fcn.0041c7f7
add esp, 4
push 0xc
push str.COMPARE_DIFF
lea ecx, [esp + 0x64]
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
call fcn.00402700
push 0x11
push str.BUILD_INFORMATION
lea ecx, [esp + 0x48]
mov byte [esp + 0x88], 0xe
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
call fcn.00402700
lea eax, [ebp + 0x34c]
push eax
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x48]
push edx
mov ecx, edi
mov byte [esp + 0x8c], 0xf
call fcn.0040b2d0
mov edi, 0x10
cmp dword [esp + 0x58], edi
jb 0x40d510
mov eax, dword [esp + 0x44]
push eax
call fcn.0041c7f7
add esp, 4
cmp dword [esp + 0x74], edi
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
mov byte [esp + 0x80], 2
jb 0x40d537
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0041c7f7
add esp, 4
xor edi, edi
mov dword [esp + 0x14], edi
lea ecx, [ecx]
mov ecx, dword [ebp + 0x340]
cmp ecx, ebx
je 0x40d694
mov eax, dword [ebp + 0x344]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x40d694
push 1
push 0x45467c
lea ecx, [esp + 0x64]
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
call fcn.00402700
mov ecx, dword [ebp + 0x340]
cmp ecx, ebx
mov byte [esp + 0x80], 0x10
je 0x40d59e
mov eax, dword [ebp + 0x344]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x40d5a3
call fcn.0043aefb
mov edx, dword [ebp + 0x340]
lea eax, [edx + edi*4]
mov edi, dword [eax]
mov eax, edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x40d5c0
sub eax, ecx
push eax
push edi
lea ecx, [esp + 0x2c]
call fcn.00402700
push 0xe
push str.EXCLUSION_FILE
lea ecx, [esp + 0x48]
mov byte [esp + 0x88], 0x11
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
call fcn.00402700
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x48]
push edx
lea ecx, [ebp + 0x31c]
mov byte [esp + 0x8c], 0x12
call fcn.0040aa50
mov edi, 0x10
cmp dword [esp + 0x58], edi
jb 0x40d634
mov eax, dword [esp + 0x44]
push eax
call fcn.0041c7f7
add esp, 4
cmp dword [esp + 0x3c], edi
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
jb 0x40d653
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0041c7f7
add esp, 4
cmp dword [esp + 0x74], edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
mov byte [esp + 0x80], 2
jb 0x40d67a
mov edx, dword [esp + 0x60]
push edx
call fcn.0041c7f7
add esp, 4
add dword [esp + 0x14], 1
mov edi, dword [esp + 0x14]
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
jmp 0x40d540
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x80], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d6bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x80], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d6e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x80], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d70e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret