Function at 0x412970
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3074
call fcn.00424090
push esi
push edi
mov dword [ebp - 0x3074], ecx
mov eax, dword [0x45e14c]
add eax, 0x14
cdq
mov ecx, 0x57e40
idiv ecx
test edx, edx
jne 0x4129aa
push 0xa
push 0x43390c
mov ecx, 0x46e970
call fcn.0041f450
mov eax, dword [0x45e14c]
add eax, 0x64
cdq
mov ecx, 0x258
idiv ecx
test edx, edx
jne 0x4129cc
call fcn.00421ce0
test eax, eax
je 0x4129cc
call fcn.00415400
cmp dword [0x46e31c], 0
je 0x412a08
mov edx, dword [0x45e14c]
cmp edx, dword [0x46e31c]
jle 0x412a08
mov eax, dword [0x45a328]
imul eax, eax, 0xa
add eax, dword [0x45e14c]
mov dword [0x46e31c], eax
push 1
push 0
push 0
push 0
mov ecx, 0x46e700
call fcn.0041b110
mov eax, dword [0x45e14c]
add eax, 1
cdq
mov ecx, 0x14
idiv ecx
test edx, edx
jne 0x412a69
cmp dword [0x45b4e4], 0
je 0x412a69
call fcn.00421ce0
test eax, eax
jne 0x412a69
mov dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
mov eax, dword [0x45b4e4]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x412a69
cmp dword [ebp - 4], 0x103
je 0x412a69
mov dword [0x45b4e4], 0
push 0
mov ecx, dword [ebp - 0x3074]
call fcn.004115c0
call fcn.00421ce0
test eax, eax
je 0x412e4c
cmp dword [0x46e3c8], 0
je 0x412a9c
mov ecx, dword [0x45e14c]
cmp ecx, dword [0x46e3c8]
jle 0x412a9c
mov dword [0x46e3c8], 0
call fcn.00415ed0
mov eax, dword [0x45e14c]
add eax, 1
cdq
mov ecx, 0x190
idiv ecx
test edx, edx
jne 0x412e23
mov dword [ebp - 0x205c], 0x1000
mov dl, byte [0x43390f]
mov byte [ebp - 0x2050], dl
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x204f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x205c]
push eax
lea ecx, [ebp - 0x2050]
push ecx
lea edx, [ebp - 0x2058]
push edx
push 0x38
mov ecx, 0x46e9a8
call fcn.00421660
push eax
push 0x17
mov ecx, 0x46e9a8
call fcn.00421660
push eax
push SysReAllocStringLen
call fcn.0041fb20
add esp, 0x18
push 7
push 0x433910
lea eax, [ebp - 0x2050]
push eax
call fcn.00430257
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffff9
add eax, 7
lea ecx, [ebp + eax - 0x2050]
push ecx
lea edx, [ebp - 0x1050]
push edx
call fcn.00423c20
add esp, 8
push 0x20
push 0x2f
lea eax, [ebp - 0x1050]
push eax
call fcn.00421600
add esp, 0xc
mov dword [ebp - 0x2054], 0
mov dword [ebp - 0x4c], 0
cmp dword [ebp - 0x2054], 0
jne 0x412c0f
mov ecx, dword [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x48]
push edx
call fcn.00422ff0
add esp, 8
test eax, eax
je 0x412c0f
lea eax, [ebp - 0x1050]
push eax
call fcn.00423b90
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.00423b90
add esp, 4
cmp esi, eax
jb 0x412c01
lea edx, [ebp - 0x48]
push edx
call fcn.00423b90
add esp, 4
push eax
lea eax, [ebp - 0x1050]
push eax
call fcn.00423b90
add esp, 4
lea esi, [ebp + eax - 0x1050]
lea ecx, [ebp - 0x48]
push ecx
call fcn.00423b90
add esp, 4
sub esi, eax
push esi
lea edx, [ebp - 0x48]
push edx
call fcn.00430257
add esp, 0xc
test eax, eax
jne 0x412c01
mov dword [ebp - 0x2054], 1
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
jmp 0x412b73
cmp dword [ebp - 0x2054], 0
je 0x412c81
push 0
push str.F64A68D9A3CDF70359C48860278C4A11ADFB908A357C25EEEF204EBD5A
call fcn.00422d00
add esp, 8
push eax
lea ecx, [ebp - 0x2050]
push ecx
call fcn.00423fb0
add esp, 8
test eax, eax
jne 0x412c7c
call fcn.004149b0
push eax
call fcn.00423b90
add esp, 4
add eax, 1
push eax
call fcn.004149b0
push eax
push 1
push 0x38
mov ecx, 0x46e9a8
call fcn.00421660
push eax
push 0x17
mov ecx, 0x46e9a8
call fcn.00421660
push eax
push SysReAllocStringLen
call fcn.0041fb80
add esp, 0x18
jmp 0x412e23
mov dword [ebp - 0x2060], 0
mov dword [ebp - 0x2064], 0
mov edx, dword [ebp - 0x2060]
shl edx, 7
movsx eax, byte [edx + str.C221DE4B080BB63B67BAF8D592AA7B72ADF436]
test eax, eax
je 0x412dcf
lea ecx, [ebp - 0x2050]
push ecx
lea edx, [ebp - 0x3068]
push edx
call fcn.00411d40
add esp, 8
mov dword [ebp - 0x306c], eax
push str.http:__
lea eax, [ebp - 0x2050]
push eax
call fcn.004301ee
add esp, 8
test eax, eax
je 0x412d45
push 0
mov ecx, dword [ebp - 0x2060]
shl ecx, 7
add ecx, str.C221DE4B080BB63B67BAF8D592AA7B72ADF436
push ecx
call fcn.00422d00
add esp, 8
push eax
lea edx, [ebp - 0x2050]
push edx
call fcn.004214b0
add esp, 8
test eax, eax
jne 0x412d45
push 0
mov eax, dword [ebp - 0x2060]
shl eax, 7
add eax, str.C221DE4B080BB63B67BAF8D592AA7B72ADF436
push eax
call fcn.00422d00
add esp, 8
push eax
lea ecx, [ebp - 0x3068]
push ecx
call fcn.004214b0
add esp, 8
test eax, eax
jne 0x412d45
cmp dword [ebp - 0x306c], 0
je 0x412dbb
call fcn.004149b0
push eax
call fcn.00423b90
add esp, 4
add eax, 1
push eax
call fcn.004149b0
push eax
push 1
push 0x38
mov ecx, 0x46e9a8
call fcn.00421660
push eax
push 0x17
mov ecx, 0x46e9a8
call fcn.00421660
push eax
push SysReAllocStringLen
call fcn.0041fb80
add esp, 0x18
mov dword [ebp - 0x2064], 1
lea edx, [ebp - 0x2050]
push edx
push 0x46e288
push 0
push str.191CDD48C007799C5E03A9EF1E4214A1767B
call fcn.00422d00
add esp, 8
push eax
push 0x46e700
call fcn.0041b4f0
add esp, 0x10
jmp 0x412dcf
mov eax, dword [ebp - 0x2060]
add eax, 1
mov dword [ebp - 0x2060], eax
jmp 0x412c95
cmp dword [ebp - 0x2064], 0
jne 0x412e23
push 0x433984
mov ecx, 0x46e970
call fcn.0041f9d0
test eax, eax
je 0x412e23
lea ecx, [ebp - 0x2050]
push ecx
push 0x46e288
push 0
push str.696400775DE2A014D9DAC40BE1760D91A27D
call fcn.00422d00
add esp, 8
push eax
push 0x46e700
call fcn.0041b4f0
add esp, 0x10
push 0x4339b0
mov ecx, 0x46e970
call fcn.0041f650
mov eax, dword [0x45e14c]
cdq
mov ecx, 0x190
idiv ecx
test edx, edx
jne 0x412e4c
push 0x4339b4
mov ecx, 0x46e970
call fcn.0041f9d0
test eax, eax
je 0x412e4c
call fcn.00411eb0
cmp dword [0x45e14c], 0xc9
jge 0x412ea7
cmp dword [0x46e5e8], 0
jne 0x412ea7
mov dword [0x46e5e8], 1
push 0x4339b8
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.00423fb0
add esp, 8
test eax, eax
je 0x412e85
jmp 0x412ea7
push 0x46e288
push 0
push str.4676DBF56187DFA4304BF34F490669E0466670FD
call fcn.00422d00
add esp, 8
push eax
push 0x46e700
call fcn.0041b4f0
add esp, 0xc
call fcn.00421ce0
test eax, eax
je 0x412f7a
push 0x20
mov ecx, 0x46e9a8
call fcn.00421660
push eax
call fcn.004254e8
add esp, 4
imul eax, eax, 0xa
mov dword [ebp - 0x3070], eax
cmp dword [0x46e5dc], 0
je 0x412eea
mov edx, dword [0x46e5dc]
imul edx, edx, 0xa
mov dword [ebp - 0x3070], edx
cmp dword [ebp - 0x3070], 0x258
jge 0x412f00
mov dword [ebp - 0x3070], 0x258
cmp dword [ebp - 0x3070], 0x927c0
jle 0x412f16
mov dword [ebp - 0x3070], 0x927c0
mov eax, dword [0x45e14c]
cmp eax, dword [0x43a1a0]
jle 0x412f49
mov ecx, dword [0x45e14c]
add ecx, dword [ebp - 0x3070]
mov dword [0x43a1a0], ecx
cmp dword [0x46e5d8], 0
je 0x412f49
mov ecx, dword [0x46e5d8]
call fcn.0041d480
mov edx, dword [0x45e14c]
and edx, 0xf
jne 0x412f7a
cmp dword [0x46e5d8], 0
je 0x412f7a
push 0
mov eax, dword [0x45e164]
push eax
mov ecx, dword [ebp - 0x3074]
mov edx, dword [ecx + 0x28]
push edx
mov ecx, dword [0x46e5d8]
call fcn.0041c900
cmp dword [0x45e130], 0
je 0x412f98
mov eax, dword [0x45e138]
push eax
mov ecx, dword [0x45e130]
push ecx
call fcn.004126a0
add esp, 8
cmp dword [0x45e134], 0
je 0x412fb6
mov edx, dword [0x45e13c]
push edx
mov eax, dword [0x45e134]
push eax
call fcn.004126a0
add esp, 8
cmp dword [0x45e14c], 5
jne 0x413031
cmp dword [0x46e3b0], 0
je 0x413031
push 0x4339ec
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.00423fb0
add esp, 8
test eax, eax
jne 0x413031
mov ecx, dword [0x45e14c]
add ecx, 1
mov dword [0x45e14c], ecx
cmp dword [0x46e320], 1
jne 0x41302f
call fcn.00421ce0
test eax, eax
je 0x413022
push 0x4339f4
push 0x433a04
call fcn.00421fe0
add esp, 8
push 0
mov ecx, dword [ebp - 0x3074]
call fcn.00414310
jmp 0x41302f
push 0
mov ecx, dword [ebp - 0x3074]
call fcn.004115c0
jmp 0x413040
mov edx, dword [0x45e14c]
add edx, 1
mov dword [0x45e14c], edx
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret