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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x409e17
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x40f018]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
mov eax, dword [0x40f018]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
xor esi, esi
push esi
push esi
push esi
push esi
mov edi, ecx
push 1
push esi
lea ecx, [esp + 0x60]
mov dword [esp + 0x30], edi
call dword [sym.imp.mfc100.dll_Ordinal_462]
push edi
lea ecx, [esp + 0x4c]
mov dword [esp + 0x154], esi
call fcn.00403820
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, esi
je 0x401cec
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
lea ecx, [esp + 0x24]
push ecx
mov ecx, eax
mov byte [esp + 0x154], 1
call fcn.004059d0
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push edi
push edx
call fcn.004031f0
mov ebx, eax
add esp, 8
cmp ebx, edi
jne 0x401d08
mov ebx, dword [esp + 0x24]
cmp ebx, esi
je 0x401cec
mov eax, dword [esp + 0x20]
push eax
push edi
mov eax, ebx
call fcn.00406600
push ebx
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 0xc
lea ecx, [esp + 0x48]
mov dword [esp + 0x150], 0xffffffff
call dword [sym.imp.mfc100.dll_Ordinal_1008]
xor al, al
jmp 0x402240
mov dword [esp + 0x6c], esi
mov edi, 0xa
mov eax, str.AppVersion
lea esi, [esp + 0x5c]
mov dword [esp + 0x70], 0xf
mov byte [esp + 0x5c], 0
call fcn.00402890
mov ecx, esi
push ecx
mov byte [esp + 0x154], 2
call fcn.00405710
xor esi, esi
mov edi, 0x10
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
cmp dword [eax + 0x14], edi
jb 0x401d56
mov eax, dword [eax]
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x3c]
push edx
push 0x40b9b4
push eax
call dword [sym.imp.MSVCR100.dll_sscanf]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x4c]
mov dword [eax + 0x1c], ecx
mov ecx, dword [esp + 0x50]
add esp, 0x14
mov byte [esp + 0x150], 1
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], ecx
cmp dword [esp + 0x70], edi
jb 0x401da9
mov edx, dword [esp + 0x5c]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 4
mov dword [esp + 0x6c], esi
mov edi, 0xb
mov eax, str.Repostitory
lea esi, [esp + 0x5c]
mov dword [esp + 0x70], 0xf
mov byte [esp + 0x5c], 0
call fcn.00402890
mov eax, esi
push eax
mov byte [esp + 0x154], 3
call fcn.00405710
xor ecx, ecx
mov dword [esp + 0xa4], ecx
mov byte [esp + 0x94], cl
push eax
mov esi, 0xf
or eax, 0xffffffff
xor ebx, ebx
lea ecx, [esp + 0x98]
mov dword [esp + 0xac], esi
call fcn.004024e0
mov byte [esp + 0x150], 5
cmp dword [esp + 0x70], 0x10
jb 0x401e28
mov ecx, dword [esp + 0x5c]
push ecx
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 4
mov edi, dword [esp + 0x18]
lea edx, [esp + 0x14]
xor ebx, ebx
push edx
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
mov byte [esp + 0x18], 0x2f
call fcn.004025c0
push eax
push edi
lea esi, [esp + 0xb8]
call fcn.00402310
mov byte [esp + 0x150], 6
call fcn.00402450
push ebx
lea eax, [esp + 0x98]
push eax
or eax, 0xffffffff
call fcn.004027a0
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x28]
je 0x40218d
lea ebx, [eax + 0x20]
mov dword [esp + 0x1c], ebx
lea ebx, [ebx]
mov eax, dword [ebx]
mov esi, 4
cmp eax, esi
jae 0x401e9d
mov esi, eax
cmp dword [ebx + 4], 0x10
mov eax, esi
jb 0x401eaa
mov edx, dword [ebx - 0x10]
jmp 0x401ead
lea edx, [ebx - 0x10]
mov ecx, str.File
call fcn.00401040
test eax, eax
jne 0x402177
cmp esi, 4
jb 0x402177
cmp esi, 4
setne al
test eax, eax
jne 0x402177
mov dword [esp + 0x6c], eax
mov byte [esp + 0x5c], al
lea edi, [eax + 4]
mov eax, str.Name
lea esi, [esp + 0x5c]
mov dword [esp + 0x70], 0xf
call fcn.00402890
mov ecx, esi
add ebx, 0xffffffe0
push ecx
mov byte [esp + 0x154], 7
mov dword [esp + 0x48], ebx
call fcn.00405710
mov edi, eax
mov byte [esp + 0x150], 6
cmp dword [esp + 0x70], 0x10
mov dword [esp + 0x40], edi
jb 0x401f31
mov edx, dword [esp + 0x5c]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 4
xor eax, eax
mov esi, 0xf
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], eax
mov byte [esp + 0x5c], al
cmp dword [edi + 0x10], eax
je 0x402173
mov dword [esp + 0xe0], esi
mov dword [esp + 0xdc], eax
mov byte [esp + 0xcc], al
mov dword [esp + 0xfc], esi
mov dword [esp + 0xf8], eax
mov byte [esp + 0xe8], al
mov dword [esp + 0x118], esi
mov dword [esp + 0x114], eax
mov byte [esp + 0x104], al
push edi
or eax, 0xffffffff
xor ebx, ebx
lea ecx, [esp + 0xd0]
mov byte [esp + 0x154], 8
call fcn.004024e0
xor eax, eax
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], eax
mov byte [esp + 0x78], al
lea edi, [esi - 7]
mov eax, str.Location
lea esi, [esp + 0x78]
call fcn.00402890
mov ebx, dword [esp + 0x44]
mov eax, esi
push eax
mov byte [esp + 0x154], 9
call fcn.00405710
push eax
or eax, 0xffffffff
xor ebx, ebx
lea ecx, [esp + 0xec]
call fcn.004024e0
mov edi, 0x10
mov byte [esp + 0x150], 8
cmp dword [esp + 0x8c], edi
jb 0x402015
mov ecx, dword [esp + 0x78]
push ecx
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 4
lea edx, [esp + 0xb0]
push edx
lea eax, [esp + 0x128]
push eax
call fcn.00402f60
add esp, 8
mov ecx, eax
lea eax, [esp + 0xe8]
lea ebx, [esp + 0x78]
mov byte [esp + 0x150], 0xa
call fcn.00403010
mov esi, eax
lea ecx, [esp + 0x104]
cmp ecx, esi
je 0x4020d0
cmp dword [esp + 0x118], edi
jb 0x40206e
mov edx, dword [esp + 0x104]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 4
xor ebx, ebx
mov edi, 0xf
mov dword [esp + 0x118], edi
mov dword [esp + 0x114], ebx
mov byte [esp + 0x104], bl
cmp dword [esi + 0x14], 0x10
jae 0x4020a9
mov eax, dword [esi + 0x10]
inc eax
push eax
lea eax, [esp + 0x108]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
jmp 0x4020b4
mov ecx, dword [esi]
mov dword [esp + 0x104], ecx
mov dword [esi], ebx
mov edx, dword [esi + 0x10]
mov dword [esp + 0x114], edx
mov eax, dword [esi + 0x14]
mov dword [esp + 0x118], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
jmp 0x4020d5
xor ebx, ebx
lea edi, [ebx + 0xf]
cmp dword [esp + 0x8c], 0x10
jb 0x4020ed
mov ecx, dword [esp + 0x78]
push ecx
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 4
mov byte [esp + 0x150], 8
cmp dword [esp + 0x138], 0x10
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
jb 0x402122
mov edx, dword [esp + 0x124]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 4
mov eax, dword [esp + 0x40]
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x10c]
mov dword [esp + 0x140], edi
mov dword [esp + 0x13c], ebx
mov byte [esp + 0x12c], bl
call fcn.004027a0
mov edi, dword [esp + 0x18]
add edi, 0x28
lea ecx, [esp + 0xcc]
call fcn.00402340
lea esi, [esp + 0xcc]
mov byte [esp + 0x150], 6
call fcn.00402270
mov ebx, dword [esp + 0x1c]
add ebx, 0x2c
lea ecx, [ebx - 0x20]
mov dword [esp + 0x1c], ebx
cmp ecx, dword [esp + 0x28]
jne 0x401e90
xor ebx, ebx
mov esi, dword [esp + 0x20]
mov edx, dword [esi]
mov eax, dword [edx + 0x58]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 1
mov ecx, esi
call eax
cmp dword [esp + 0xc4], 0x10
mov edi, dword [sym.imp.mfc100.dll_Ordinal_1296]
jb 0x4021c2
mov ecx, dword [esp + 0xb0]
push ecx
call edi
add esp, 4
cmp dword [esp + 0xa8], 0x10
mov esi, 0xf
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], 0
jb 0x4021f4
mov edx, dword [esp + 0x94]
push edx
call edi
add esp, 4
mov dword [esp + 0xa8], esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], 0
cmp esi, ebx
je 0x402229
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
push eax
push ecx
mov eax, esi
call fcn.00406600
push esi
call edi
add esp, 0xc
lea ecx, [esp + 0x48]
mov dword [esp + 0x150], 0xffffffff
call dword [sym.imp.mfc100.dll_Ordinal_1008]
mov al, 1
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0040888c
mov esp, ebp
pop ebp
ret