Function at 0x402ef1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x15c0
call fcn.004044a0
push ebx
push esi
push edi
mov esi, str._r_n._r_n
lea edi, [ebp - 0x3c]
push 0x10
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, 0x406654
lea edi, [ebp - 0xc]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop ecx
mov esi, 0x406658
lea edi, [ebp - 0x318]
push 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x40669c
lea edi, [ebp - 0xdc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x4066ac
lea edi, [ebp - 0xa0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x4066b8
lea edi, [ebp - 0xac]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x4066c4
lea edi, [ebp - 0x88]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x4066d0
lea edi, [ebp - 0x12c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x4066e0
lea edi, [ebp - 0xbc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, 0x4066f0
lea edi, [ebp - 0x10c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x406700
lea edi, [ebp - 0x94]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x40670c
lea edi, [ebp - 0x7c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor ebx, ebx
pop ecx
mov esi, 0x406718
lea edi, [ebp - 0x194]
mov dword [ebp - 4], ebx
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x406734
lea edi, [ebp - 0x178]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x406748
lea edi, [ebp - 0x150]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x40675c
lea edi, [ebp - 0xec]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x40676c
lea edi, [ebp - 0xcc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, 0x40677c
lea edi, [ebp - 0x164]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 7
mov esi, 0x406790
pop ecx
lea edi, [ebp - 0x1d0]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x4067b0
lea edi, [ebp - 0x13c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 7
mov esi, 0x4067c0
pop ecx
lea edi, [ebp - 0x1b0]
rep movsd dword es:[edi], dword [esi]
mov esi, 0x4067dc
lea edi, [ebp - 0xfc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x4067ec
lea edi, [ebp - 0x11c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
push 0x10
mov esi, 0x4067fc
pop ecx
lea edi, [ebp - 0x45c]
rep movsd dword es:[edi], dword [esi]
push 0x10
mov esi, 0x40683c
pop ecx
lea edi, [ebp - 0x49c]
lea eax, [ebp - 0x318]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00401675
lea eax, [ebp - 0xdc]
push eax
call fcn.00401675
lea eax, [ebp - 0xa0]
push eax
call fcn.00401675
lea eax, [ebp - 0xac]
push eax
call fcn.00401675
lea eax, [ebp - 0x88]
push eax
call fcn.00401675
lea eax, [ebp - 0x12c]
push eax
call fcn.00401675
lea eax, [ebp - 0xbc]
push eax
call fcn.00401675
lea eax, [ebp - 0x10c]
push eax
call fcn.00401675
lea eax, [ebp - 0x94]
push eax
call fcn.00401675
lea eax, [ebp - 0x7c]
push eax
call fcn.00401675
lea eax, [ebp - 0x194]
push eax
call fcn.00401675
lea eax, [ebp - 0x178]
push eax
call fcn.00401675
lea eax, [ebp - 0x150]
push eax
call fcn.00401675
lea eax, [ebp - 0xec]
push eax
call fcn.00401675
lea eax, [ebp - 0xcc]
push eax
call fcn.00401675
lea eax, [ebp - 0x164]
push eax
call fcn.00401675
add esp, 0x40
lea eax, [ebp - 0x1d0]
push eax
call fcn.00401675
lea eax, [ebp - 0x13c]
push eax
call fcn.00401675
lea eax, [ebp - 0x1b0]
push eax
call fcn.00401675
lea eax, [ebp - 0xfc]
push eax
call fcn.00401675
lea eax, [ebp - 0x11c]
push eax
call fcn.00401675
lea eax, [ebp - 0x45c]
push eax
call fcn.00401675
lea eax, [ebp - 0x49c]
push eax
call fcn.00401675
lea eax, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0x318]
push ebx
push eax
push 0x80000002
call fcn.00401485
add esp, 0x2c
test eax, eax
je 0x403837
cmp byte [ebp - 0x2d4], 0x22
jne 0x40321e
lea eax, [ebp - 0x2d4]
xor esi, esi
push eax
call sub.MSVCRT.dll_strlen
dec eax
pop ecx
je 0x403206
mov al, byte [ebp + esi - 0x2d3]
mov byte [ebp + esi - 0x2d4], al
lea eax, [ebp - 0x2d4]
push eax
inc esi
call sub.MSVCRT.dll_strlen
dec eax
pop ecx
cmp esi, eax
jb 0x4031e5
lea eax, [ebp - 0x2d4]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea ecx, [ebp - 0x2d4]
dec ecx
dec ecx
mov byte [eax + ecx], bl
lea eax, [ebp - 0x2d4]
push eax
call sub.MSVCRT.dll_strlen
lea ecx, [ebp - 0x2d4]
sub ecx, 0xc
mov byte [eax + ecx], bl
lea eax, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0xbb0]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xbb0]
push eax
call sub.MSVCRT.dll_strcat
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x14
lea eax, [ebp - 0xbb0]
push eax
call esi
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0xcb4]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xcb4]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0xcb4]
push eax
call esi
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0xfc0]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0xfc0]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0xfc0]
push eax
call esi
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0x8a4]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x8a4]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x8a4]
push eax
call esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0xebc]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0xebc]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0xebc]
push eax
call esi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0xdb8]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xdb8]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0xdb8]
push eax
call esi
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0x9a8]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x9a8]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x9a8]
push eax
call esi
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0xaac]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0xaac]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0xaac]
push eax
call esi
cmp dword [ebp - 0x14], ebx
mov edi, eax
mov dword [ebp - 0x60], edi
je 0x403837
cmp edi, ebx
je 0x403837
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea eax, [ebp - 0x7c]
push eax
push edi
call esi
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x194]
push eax
push edi
call esi
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x178]
push eax
push edi
call esi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x150]
push eax
push edi
call esi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xec]
push eax
push edi
call esi
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0xcc]
push eax
push edi
call esi
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x164]
push eax
push dword [ebp - 0x14]
call esi
push dword [ebp + 8]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x41c]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x1d0]
push eax
lea eax, [ebp - 0x41c]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.0040138a
add esp, 0x1c
test eax, eax
je 0x403837
lea eax, [ebp - 0x13c]
push ebx
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00401526
add esp, 0x10
cmp eax, ebx
je 0x403837
add eax, 0xe
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00401526
push dword [ebp + 8]
mov esi, eax
lea eax, [ebp - 0x41c]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x41c]
push eax
call sub.MSVCRT.dll_strcat
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
sub esi, eax
add eax, ecx
push esi
push eax
lea eax, [ebp - 0x41c]
push eax
call sub.MSVCRT.dll_strncat
push dword [ebp - 4]
call sub.MSVCRT.dll_free
add esp, 0x30
mov dword [ebp + 8], ebx
cmp dword [ebp + 8], ebx
jne 0x403536
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x7a0]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0xfc]
jmp 0x403555
cmp dword [ebp + 8], 1
jne 0x403565
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x7a0]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x7a0]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x7a0]
push eax
call fcn.0040138a
add esp, 0xc
test eax, eax
je 0x4037f9
lea eax, [ebp - 0x41c]
push eax
call dword [ebp - 0x4c]
test eax, eax
pop ecx
jne 0x403837
call dword [ebp - 0x70]
cmp eax, ebx
mov dword [ebp - 0x50], eax
je 0x403837
push ebx
push 1
push eax
call dword [ebp - 0x34]
add esp, 0xc
test eax, eax
jne 0x403837
lea eax, [ebp - 0x3c]
push ebx
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00401526
mov edi, eax
add esp, 0x10
cmp edi, ebx
je 0x4037e3
lea eax, [ebp - 0x69c]
dec eax
mov dword [ebp - 0x10], eax
add edi, 5
lea eax, [ebp - 0xc]
push edi
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00401526
mov esi, eax
sub eax, edi
push eax
mov eax, dword [ebp - 4]
add eax, edi
push eax
lea eax, [ebp - 0x15c0]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x15c0]
sub eax, edi
mov byte [eax + esi], bl
add esi, 2
lea eax, [ebp - 0xc]
push esi
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00401526
mov esi, eax
lea eax, [ebp - 0xc]
inc esi
inc esi
push esi
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00401526
mov edi, eax
sub eax, esi
push eax
mov eax, dword [ebp - 4]
add eax, esi
push eax
lea eax, [ebp - 0x69c]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x69c]
add esp, 0x48
sub eax, esi
mov byte [eax + edi], bl
lea eax, [ebp - 0x69c]
push eax
call sub.MSVCRT.dll_strlen
mov esi, eax
push ebx
lea eax, [ebp - 0x69c]
push esi
push eax
call dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
add esp, 0x10
xor ecx, ecx
cmp byte [edx + esi], 0x3d
jne 0x403697
cmp byte [ebp + esi - 0x69e], 0x3d
push 1
pop ecx
jne 0x403697
push 2
pop ecx
mov dword [ebp - 0x68], eax
lea eax, [esi + esi*2]
push 4
cdq
pop esi
idiv esi
push ebx
sub eax, ecx
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
push eax
call dword [ebp - 0x18]
add esp, 0xc
test eax, eax
jne 0x403837
push dword [ebp - 0x20]
lea eax, [ebp - 0x13c0]
push dword [ebp - 0x24]
push eax
call sub.MSVCRT.dll_strncpy
mov eax, dword [ebp - 0x20]
add edi, 2
push edi
mov byte [ebp + eax - 0x13c0], bl
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00401526
mov esi, eax
lea eax, [ebp - 0xc]
inc esi
inc esi
push esi
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00401526
mov edi, eax
sub eax, esi
push eax
mov eax, dword [ebp - 4]
add eax, esi
push eax
lea eax, [ebp - 0x69c]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x69c]
sub eax, esi
mov byte [eax + edi], bl
lea eax, [ebp - 0x69c]
push eax
call sub.MSVCRT.dll_strlen
mov esi, eax
push ebx
lea eax, [ebp - 0x69c]
push esi
push eax
call dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
add esp, 0x48
xor ecx, ecx
cmp byte [edx + esi], 0x3d
jne 0x40375c
cmp byte [ebp + esi - 0x69e], 0x3d
push 1
pop ecx
jne 0x40375c
push 2
pop ecx
mov dword [ebp - 0x68], eax
lea eax, [esi + esi*2]
push 4
cdq
pop esi
idiv esi
push ebx
sub eax, ecx
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
push eax
call dword [ebp - 0x18]
add esp, 0xc
test eax, eax
jne 0x403837
push dword [ebp - 0x20]
lea eax, [ebp - 0x11c0]
push dword [ebp - 0x24]
push eax
call sub.MSVCRT.dll_strncpy
mov eax, dword [ebp - 0x20]
mov byte [ebp + eax - 0x11c0], bl
lea eax, [ebp - 0x11c0]
push eax
lea eax, [ebp - 0x13c0]
push eax
lea eax, [ebp - 0x15c0]
push eax
push 0x40687c
call fcn.00403f7c
add esp, 0x1c
cmp edi, ebx
je 0x4037e3
lea eax, [ebp - 0x3c]
push edi
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00401526
mov edi, eax
add esp, 0x10
cmp edi, ebx
jne 0x4035de
push dword [ebp - 0x50]
call dword [ebp - 0x40]
call dword [ebp - 0x58]
push dword [ebp - 4]
call sub.MSVCRT.dll_free
mov edi, dword [ebp - 0x60]
pop ecx
pop ecx
inc dword [ebp + 8]
cmp dword [ebp + 8], 2
jb 0x403516
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call esi
push dword [ebp - 0x5c]
call esi
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x54]
call esi
push dword [ebp - 0x44]
call esi
push dword [ebp - 0x48]
call esi
push edi
call esi
push dword [ebp - 0x30]
call esi
push 1
pop eax
jmp 0x403839
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret