Function at 0x415400
Capabilities:
Create thread

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x128]
push 0x3a
push edi
call fcn.0044e400
mov esi, dword [esp + 0x12c]
mov ebp, dword [0x4a41ec]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4154c1
mov eax, dword [esp + 0x12c]
push ebx
push eax
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x80000000
push edi
push 0x4ec1d4
call fcn.00405540
add esp, 0x1c
cmp eax, 0xffffffff
je 0x4154c1
push eax
call dword [0x4a4290]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x415480
push 0xffffffffffffffff
push eax
call dword [0x4a416c]
mov edx, dword [esi + 0xc]
push edx
call dword [0x4a4290]
mov dword [esi + 0xc], ebx
mov dword [esi], ebx
push 0x4ec1d4
lea eax, [esi + 0x20]
push eax
mov dword [esi + 4], ebx
call ebp
push edi
lea ecx, [esi + 0x124]
push ecx
call ebp
lea edx, [esi + 0x10]
push edx
push ebx
push esi
push 0x415250
push ebx
push ebx
mov dword [esi], 1
mov dword [esi + 4], ebx
call fcn.0044e25b
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x415727
cmp byte [0xc517dc], bl
je 0x415572
mov edx, dword [esp + 0x12c]
push ebx
push edx
lea eax, [esp + 0x18]
push eax
push ebx
push 0x80000000
push edi
push 0xc517dc
call fcn.00405540
add esp, 0x1c
cmp eax, 0xffffffff
je 0x415572
push eax
call dword [0x4a4290]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x41551a
push 0xffffffffffffffff
push eax
call dword [0x4a416c]
mov ecx, dword [esi + 0xc]
push ecx
call dword [0x4a4290]
mov dword [esi + 0xc], ebx
mov dword [esi], ebx
push 0xc517dc
lea edx, [esi + 0x20]
push edx
mov dword [esi + 4], ebx
call ebp
push edi
lea eax, [esi + 0x124]
push eax
call ebp
lea ecx, [esi + 0x10]
push ecx
push ebx
push esi
push 0x415250
push ebx
push ebx
mov dword [esi], 1
mov dword [esi + 4], ebx
call fcn.0044e25b
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x415572
mov edx, dword [esi + 0x14]
push edx
push eax
call dword [0x4a41c4]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x110
ret
cmp dword [0xc519e4], ebx
mov dword [esp + 0x10], ebx
jle 0x415627
mov dword [esp + 0x14], 0x8380a8
mov eax, dword [esp + 0x12c]
mov edx, dword [esp + 0x14]
push ebx
push eax
lea ecx, [esp + 0x20]
push ecx
push ebx
push 0x80000000
push edi
push edx
call fcn.00405540
add esp, 0x1c
cmp eax, 0xffffffff
je 0x415602
push eax
call dword [0x4a4290]
push esi
call fcn.004152e0
mov eax, dword [esp + 0x18]
add esp, 4
push eax
lea ecx, [esi + 0x20]
push ecx
mov dword [esi + 4], ebx
call ebp
push edi
lea edx, [esi + 0x124]
push edx
call ebp
lea eax, [esi + 0x10]
push eax
push ebx
push esi
push 0x415250
push ebx
push ebx
mov dword [esi], 1
mov dword [esi + 4], ebx
call fcn.0044e25b
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x415727
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [0xc519e4]
inc eax
add edx, 0x104
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
jl 0x41558a
cmp byte [0xc511bc], bl
je 0x4156a7
mov edx, dword [esp + 0x12c]
push ebx
push edx
lea eax, [esp + 0x20]
push eax
push ebx
push 0x80000000
push edi
push 0xc511bc
call fcn.00405540
add esp, 0x1c
cmp eax, 0xffffffff
je 0x4156a7
push eax
call dword [0x4a4290]
push esi
call fcn.004152e0
add esp, 4
push 0xc511bc
lea ecx, [esi + 0x20]
push ecx
mov dword [esi + 4], ebx
call ebp
push edi
lea edx, [esi + 0x124]
push edx
call ebp
lea eax, [esi + 0x10]
push eax
push ebx
push esi
push 0x415250
push ebx
push ebx
mov dword [esi], 1
mov dword [esi + 4], ebx
call fcn.0044e25b
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x415727
cmp byte [0xc514c8], bl
je 0x415742
mov edx, dword [esp + 0x12c]
push ebx
push edx
lea eax, [esp + 0x20]
push eax
push ebx
push 0x80000000
push edi
push 0xc514c8
call fcn.00405540
add esp, 0x1c
cmp eax, 0xffffffff
je 0x415742
push eax
call dword [0x4a4290]
push esi
call fcn.004152e0
add esp, 4
push 0xc514c8
lea ecx, [esi + 0x20]
push ecx
mov dword [esi + 4], ebx
call ebp
push edi
lea edx, [esi + 0x124]
push edx
call ebp
lea eax, [esi + 0x10]
push eax
push ebx
push esi
push 0x415250
push ebx
push ebx
mov dword [esi], 1
mov dword [esi + 4], ebx
call fcn.0044e25b
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x415742
mov ecx, dword [esi + 0x14]
push ecx
push eax
call dword [0x4a41c4]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x110
ret
mov edx, dword [esp + 0x12c]
push edx
push edi
push 0xc512c0
push esi
call fcn.00415330
add esp, 0x10
cmp eax, ebx
jne 0x415813
cmp byte [0xc513c4], bl
je 0x415788
mov eax, dword [esp + 0x12c]
push eax
push edi
push 0xc513c4
push esi
call fcn.00415330
add esp, 0x10
cmp eax, ebx
jne 0x415813
cmp byte [0xc515d0], bl
je 0x4157ab
mov ecx, dword [esp + 0x12c]
push ecx
push edi
push 0xc515d0
push esi
call fcn.00415330
add esp, 0x10
cmp eax, ebx
jne 0x415813
cmp byte [0xc515d4], bl
je 0x4157ce
mov edx, dword [esp + 0x12c]
push edx
push edi
push 0xc515d4
push esi
call fcn.00415330
add esp, 0x10
cmp eax, ebx
jne 0x415813
cmp byte [0xc516d8], bl
je 0x4157f1
mov eax, dword [esp + 0x12c]
push eax
push edi
push 0xc516d8
push esi
call fcn.00415330
add esp, 0x10
cmp eax, ebx
jne 0x415813
push edi
lea ecx, [esp + 0x20]
push str.File_Not_Found._n_s
push ecx
call dword [0x4a43b8]
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
push 0xc50e54
call ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret