Function at 0x401b8c
Capabilities:
Create process on windows
Resolve function by parsing pe exports
Self delete

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x71c
mov eax, dword [0x417090]
xor eax, esp
mov dword [esp + 0x718], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0x413ed8
xor esi, esi
push edi
mov dword [esp + 0x18], esi
call fcn.004061ba
mov ebx, eax
cmp ebx, esi
pop ecx
pop ecx
je 0x401bf0
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x14], 1
call fcn.00401a8a
mov esi, dword [eax]
pop ecx
mov ecx, ebx
sub ecx, edi
sar ecx, 1
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x401bee
mov byte [esp + 0x17], al
xor esi, esi
jmp 0x401bf5
xor esi, esi
mov byte [esp + 0x17], 1
test byte [esp + 0x10], 1
je 0x401c0d
mov eax, dword [esp + 0x34]
and dword [esp + 0x10], 0xfffffffe
add eax, 0xfffffff0
call fcn.004010e9
cmp byte [esp + 0x17], 0
jne 0x4029bb
lea eax, [esp + 0x90]
push 0x7c
push eax
lea eax, [ebx + 2]
mov dword [esp + 0x9c], esi
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa4], esi
call fcn.00401610
pop ecx
pop ecx
mov dword [esp + 0x34], esi
cmp dword [esp + 0x94], esi
je 0x4029af
mov eax, dword [esp + 0x98]
sub eax, dword [esp + 0x94]
mov edi, dword [esp + 0x34]
sar eax, 2
cmp edi, eax
jae 0x4029af
mov eax, dword [0x4189d4]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov esi, 0x4189d4
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
cmp dword [esp + 0x94], 0
mov dword [esp + 0x28], eax
je 0x401cb0
mov eax, dword [esp + 0x98]
sub eax, dword [esp + 0x94]
sar eax, 2
cmp edi, eax
jb 0x401cb5
call fcn.00406135
lea eax, [esp + 0x18]
push 0x2a
push eax
mov eax, dword [esp + 0x9c]
mov eax, dword [eax + edi*4]
call fcn.00401610
cmp dword [esp + 0x24], 0
pop ecx
pop ecx
je 0x40298f
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x1c]
sar eax, 2
je 0x40298f
test eax, eax
ja 0x401cf2
call fcn.00406135
mov eax, dword [esp + 0x1c]
lea edi, [esp + 0x28]
call fcn.00402a08
mov edi, dword [esp + 0x1c]
cmp edi, dword [esp + 0x20]
jbe 0x401d0e
call fcn.00406135
mov eax, dword [esp + 0x20]
lea ebx, [edi + 4]
cmp ebx, eax
mov dword [esp + 0xa0], eax
je 0x401d42
mov dword [esp + 0x2c], edi
sub dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x2c]
lea edi, [eax + ebx]
mov eax, ebx
call fcn.00402a08
add ebx, 4
cmp ebx, dword [esp + 0xa0]
jne 0x401d28
mov eax, dword [esp + 0x20]
push eax
add eax, 0xfffffffc
call fcn.00402e99
mov eax, dword [esp + 0x28]
sub dword [esp + 0x20], 4
xor ebx, ebx
cmp dword [eax - 0xc], ebx
jle 0x40298f
lea eax, [esp + 0x28]
push eax
mov ecx, 0x413edc
call fcn.00402b95
test al, al
pop ecx
je 0x401e41
cmp dword [esp + 0x1c], ebx
je 0x401d91
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x1c]
sar eax, 2
cmp eax, 1
ja 0x401db8
mov eax, dword [0x4189d4]
or dword [esp + 0x10], 2
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x68], eax
push ebx
lea eax, [esp + 0x6c]
push eax
call fcn.00402a49
lea edi, [esp + 0x68]
jmp 0x401dbf
mov edi, dword [esp + 0x1c]
add edi, 4
cmp dword [esp + 0x1c], ebx
je 0x401dd2
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x1c]
sar eax, 2
jne 0x401df9
mov eax, dword [0x4189d4]
or dword [esp + 0x10], 4
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x64], eax
push ebx
lea eax, [esp + 0x68]
push eax
call fcn.00402a49
lea eax, [esp + 0x64]
jmp 0x401e06
cmp eax, ebx
ja 0x401e02
call fcn.00406135
mov eax, dword [esp + 0x1c]
push dword [edi]
mov ecx, dword [eax]
call fcn.0040144c
test byte [esp + 0x14], 4
pop ecx
je 0x401e28
mov eax, dword [esp + 0x64]
and dword [esp + 0x10], 0xfffffffb
add eax, 0xfffffff0
call fcn.004010e9
test byte [esp + 0x10], 2
je 0x40298f
and dword [esp + 0x10], 0xfffffffd
mov eax, dword [esp + 0x68]
jmp 0x402987
lea eax, [esp + 0x28]
push eax
mov ecx, str.Exec
call fcn.00402b95
test al, al
pop ecx
je 0x401fae
cmp dword [esp + 0x1c], ebx
je 0x401e6c
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x1c]
sar eax, 2
jne 0x401e93
mov eax, dword [0x4189d4]
or dword [esp + 0x10], 8
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x78], eax
push ebx
lea eax, [esp + 0x7c]
push eax
call fcn.00402a49
lea eax, [esp + 0x78]
jmp 0x401ea0
cmp eax, ebx
ja 0x401e9c
call fcn.00406135
mov eax, dword [esp + 0x1c]
push dword [eax]
call dword [0x4120c4]
cmp eax, 0xffffffff
setne byte [esp + 0x17]
test byte [esp + 0x10], 8
je 0x401ec8
mov eax, dword [esp + 0x78]
and dword [esp + 0x10], 0xfffffff7
add eax, 0xfffffff0
call fcn.004010e9
cmp byte [esp + 0x17], 0
je 0x40298f
cmp dword [esp + 0x1c], ebx
je 0x401ee9
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x1c]
sar eax, 2
cmp eax, 1
ja 0x401f10
mov eax, dword [0x4189d4]
or dword [esp + 0x10], 0x10
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x44], eax
push ebx
lea eax, [esp + 0x48]
push eax
call fcn.00402a49
lea edi, [esp + 0x44]
jmp 0x401f17
mov edi, dword [esp + 0x1c]
add edi, 4
cmp dword [esp + 0x1c], ebx
je 0x401f2a
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x1c]
sar eax, 2
jne 0x401f5a
mov eax, dword [0x4189d4]
or dword [esp + 0x10], 0x20
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x8c], eax
push ebx
lea eax, [esp + 0x90]
push eax
call fcn.00402a49
lea eax, [esp + 0x8c]
jmp 0x401f67
cmp eax, ebx
ja 0x401f63
call fcn.00406135
mov eax, dword [esp + 0x1c]
push 1
push ebx
push dword [edi]
push dword [eax]
push str.open
push ebx
call dword [0x4121f0]
test byte [esp + 0x10], 0x20
je 0x401f95
mov eax, dword [esp + 0x8c]
and dword [esp + 0x10], 0xffffffdf
add eax, 0xfffffff0
call fcn.004010e9
test byte [esp + 0x10], 0x10
je 0x40298f
and dword [esp + 0x10], 0xffffffef
mov eax, dword [esp + 0x44]
jmp 0x402987
lea eax, [esp + 0x28]
push eax
mov ecx, str.ExecWait
call fcn.00402b95
test al, al
pop ecx
je 0x4021bc
cmp dword [esp + 0x1c], ebx
je 0x401fd9
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x1c]
sar eax, 2
jne 0x402000
mov eax, dword [0x4189d4]
or dword [esp + 0x10], 0x40
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x74], eax
push ebx
lea eax, [esp + 0x78]
push eax
call fcn.00402a49
lea eax, [esp + 0x74]
jmp 0x40200d
cmp eax, ebx
ja 0x402009
call fcn.00406135
mov eax, dword [esp + 0x1c]
push dword [eax]
call dword [0x4120c4]
cmp eax, 0xffffffff
setne byte [esp + 0x17]
test byte [esp + 0x10], 0x40
je 0x402035
mov eax, dword [esp + 0x74]
and dword [esp + 0x10], 0xffffffbf
add eax, 0xfffffff0
call fcn.004010e9
cmp byte [esp + 0x17], 0
je 0x40298f
mov eax, dword [0x4189d4]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
lea eax, [esp + 0xb8]
push eax
mov dword [esp + 0xbc], 0x44
call dword [0x412058]
cmp dword [esp + 0x1c], ebx
mov dword [esp + 0xf8], ebx
mov word [esp + 0xe8], bx
je 0x40208f
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x1c]
sar eax, 2
cmp eax, 1
ja 0x4020c2
mov eax, dword [0x4189d4]
or dword [esp + 0x10], 0x80
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x88], eax
push ebx
lea eax, [esp + 0x8c]
push eax
call fcn.00402a49
mov edi, dword [esp + 0x88]
jmp 0x4020c9
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 4]
cmp dword [esp + 0x1c], ebx
je 0x4020dc
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x1c]
sar eax, 2
jne 0x402106
mov eax, dword [0x4189d4]
or dword [esp + 0x10], 0x100
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x4c], eax
push ebx
lea eax, [esp + 0x50]
push eax
call fcn.00402a49
mov eax, dword [esp + 0x4c]
jmp 0x402115
cmp eax, ebx
ja 0x40210f
call fcn.00406135
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
push edi
push eax
push str._s__s
lea eax, [esp + 0x38]
call fcn.00403691
add esp, 0xc
test word [esp + 0x10], 0x100
je 0x402145
mov eax, dword [esp + 0x4c]
and dword [esp + 0x10], 0xfffffeff
add eax, 0xfffffff0
call fcn.004010e9
test byte [esp + 0x10], 0x80
je 0x402163
mov eax, dword [esp + 0x88]
and dword [esp + 0x10], 0xffffff7f
add eax, 0xfffffff0
call fcn.004010e9
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0xbc]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push ebx
lea esi, [esp + 0x50]
call fcn.00402bde
push eax
push ebx
call dword [0x4120c0]
push 0xffffffffffffffff
push dword [esp + 0xac]
call dword [0x41209c]
push dword [esp + 0xa8]
mov esi, dword [0x4120dc]
call esi
push dword [esp + 0xac]
call esi
mov eax, dword [esp + 0x2c]
jmp 0x402987
lea eax, [esp + 0x28]
push eax
mov ecx, str.RegDLL
call fcn.00402b95
test al, al
pop ecx
je 0x40224d
push ebx
call dword [0x41221c]
cmp dword [esp + 0x1c], ebx
je 0x4021ea
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x1c]
sar eax, 2
jne 0x402214
mov eax, dword [0x4189d4]
or dword [esp + 0x10], 0x200
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x54], eax
push ebx
lea eax, [esp + 0x58]
push eax
call fcn.00402a49
lea eax, [esp + 0x54]
jmp 0x402221
cmp eax, ebx
ja 0x40221d
call fcn.00406135
mov eax, dword [esp + 0x1c]
push str.DllRegisterServer
push dword [eax]
call fcn.00401806
test word [esp + 0x18], 0x200
pop ecx
pop ecx
je 0x4022ed
and dword [esp + 0x10], 0xfffffdff
mov eax, dword [esp + 0x54]
jmp 0x4022e5
lea eax, [esp + 0x28]
push eax
mov ecx, str.UnRegDLL
call fcn.00402b95
test al, al
pop ecx
je 0x4022f8
push ebx
call dword [0x41221c]
cmp dword [esp + 0x1c], ebx
je 0x40227f
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x1c]
sar eax, 2
jne 0x4022b2
mov eax, dword [0x4189d4]
or dword [esp + 0x10], 0x400
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x80], eax
push ebx
lea eax, [esp + 0x84]
push eax
call fcn.00402a49
lea eax, [esp + 0x80]
jmp 0x4022bf
cmp eax, ebx
ja 0x4022bb
call fcn.00406135
mov eax, dword [esp + 0x1c]
push str.DllUnregisterServer
push dword [eax]
call fcn.00401806
test word [esp + 0x18], 0x400
pop ecx
pop ecx
je 0x4022ed
and dword [esp + 0x10], 0xfffffbff
mov eax, dword [esp + 0x80]
add eax, 0xfffffff0
call fcn.004010e9
call dword [0x412218]
jmp 0x40298f
lea eax, [esp + 0x28]
push eax
mov ecx, str.WriteRegStr
call fcn.00402b95
test al, al
pop ecx
je 0x4024d7
cmp dword [esp + 0x1c], ebx
je 0x402323
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x1c]
sar eax, 2
jne 0x40234d
mov eax, dword [0x4189d4]
or dword [esp + 0x10], 0x800
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x5c], eax
push ebx
lea eax, [esp + 0x60]
push eax
call fcn.00402a49
lea eax, [esp + 0x5c]
jmp 0x40235a
cmp eax, ebx
ja 0x402356
call fcn.00406135
mov eax, dword [esp + 0x1c]
mov edi, dword [eax]
call fcn.0040174c
test word [esp + 0x10], 0x800
mov dword [esp + 0x100], eax
mov word [esp + 0x104], bx
je 0x40238d
mov eax, dword [esp + 0x5c]
and dword [esp + 0x10], 0xfffff7ff
add eax, 0xfffffff0
call fcn.004010e9
cmp dword [esp + 0x1c], ebx
je 0x4023a3
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x1c]
sar eax, 2
cmp eax, 3
ja 0x4023d0
mov eax, dword [0x4189d4]
or dword [esp + 0x10], 0x1000
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x7c], eax
push ebx
lea eax, [esp + 0x80]
push eax
call fcn.00402a49
lea eax, [esp + 0x7c]
jmp 0x4023d7
mov eax, dword [esp + 0x1c]
add eax, 0xc
cmp dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], eax
je 0x4023f1
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x1c]
sar eax, 2
cmp eax, 2
ja 0x40241b
mov eax, dword [0x4189d4]
or dword [esp + 0x10], 0x2000
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x38], eax
push ebx
lea eax, [esp + 0x3c]
push eax
call fcn.00402a49
lea edi, [esp + 0x38]
jmp 0x402422
mov edi, dword [esp + 0x1c]
add edi, 8
cmp dword [esp + 0x1c], ebx
je 0x402438
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x1c]
sar eax, 2
cmp eax, 1
ja 0x402462
mov eax, dword [0x4189d4]
or dword [esp + 0x10], 0x4000
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x70], eax
push ebx
lea eax, [esp + 0x74]
push eax
call fcn.00402a49
lea eax, [esp + 0x70]
jmp 0x402469
mov eax, dword [esp + 0x1c]
add eax, 4
mov ecx, dword [esp + 0x2c]
push dword [ecx]
mov ebx, dword [eax]
push dword [edi]
lea ecx, [esp + 0x108]
call fcn.00403897
test word [esp + 0x10], 0x4000
je 0x40249c
mov eax, dword [esp + 0x70]
and dword [esp + 0x10], 0xffffbfff
add eax, 0xfffffff0
call fcn.004010e9
test word [esp + 0x10], 0x2000
je 0x4024b9
mov eax, dword [esp + 0x38]
and dword [esp + 0x10], 0xffffdfff
add eax, 0xfffffff0
call fcn.004010e9
test word [esp + 0x10], 0x1000
je 0x40298f
and dword [esp + 0x10], 0xffffefff
mov eax, dword [esp + 0x7c]
jmp 0x402987
lea eax, [esp + 0x28]
push eax
mov ecx, str.DeleteRegKey
call fcn.00402b95
test al, al
pop ecx
je 0x402653
cmp dword [esp + 0x1c], ebx
je 0x402502
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x1c]
sar eax, 2
jne 0x40252c
mov eax, dword [0x4189d4]
or dword [esp + 0x10], 0x8000
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x6c], eax
push ebx
lea eax, [esp + 0x70]
push eax
call fcn.00402a49
lea eax, [esp + 0x6c]
jmp 0x402539
cmp eax, ebx
ja 0x402535
call fcn.00406135
mov eax, dword [esp + 0x1c]
mov edi, dword [eax]
call fcn.0040174c
test word [esp + 0x10], 0x8000
mov dword [esp + 0x100], eax
mov word [esp + 0x104], bx
je 0x40256c
mov eax, dword [esp + 0x6c]
and dword [esp + 0x10], 0xffff7fff
add eax, 0xfffffff0
call fcn.004010e9
cmp dword [esp + 0x1c], ebx
je 0x402582
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x1c]
sar eax, 2
cmp eax, 2
ja 0x4025ac
mov eax, dword [0x4189d4]
or dword [esp + 0x10], 0x10000
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x3c], eax
push ebx
lea eax, [esp + 0x40]
push eax
call fcn.00402a49
lea edi, [esp + 0x3c]
jmp 0x4025b3
mov edi, dword [esp + 0x1c]
add edi, 8
cmp dword [esp + 0x1c], ebx
je 0x4025c9
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x1c]
sar eax, 2
cmp eax, 1
ja 0x4025fc
mov eax, dword [0x4189d4]
or dword [esp + 0x10], 0x20000
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x84], eax
push ebx
lea eax, [esp + 0x88]
push eax
call fcn.00402a49
lea eax, [esp + 0x84]
jmp 0x402603
mov eax, dword [esp + 0x1c]
add eax, 4
push dword [edi]
mov ebx, dword [eax]
lea ecx, [esp + 0x104]
call fcn.0040374d
test dword [esp + 0x10], 0x20000
je 0x402634
mov eax, dword [esp + 0x84]
and dword [esp + 0x10], 0xfffdffff
add eax, 0xfffffff0
call fcn.004010e9
test dword [esp + 0x10], 0x10000
je 0x40298f
and dword [esp + 0x10], 0xfffeffff
mov eax, dword [esp + 0x3c]
jmp 0x402987
lea eax, [esp + 0x28]
push eax
mov ecx, str.DeleteRegValue
call fcn.00402b95
test al, al
pop ecx
je 0x4027c4
cmp dword [esp + 0x1c], ebx
je 0x40267e
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x1c]
sar eax, 2
jne 0x4026a8
mov eax, dword [0x4189d4]
or dword [esp + 0x10], 0x40000
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x40], eax
push ebx
lea eax, [esp + 0x44]
push eax
call fcn.00402a49
lea eax, [esp + 0x40]
jmp 0x4026b5
cmp eax, ebx
ja 0x4026b1
call fcn.00406135
mov eax, dword [esp + 0x1c]
mov edi, dword [eax]
call fcn.0040174c
test dword [esp + 0x10], 0x40000
mov dword [esp + 0x100], eax
mov word [esp + 0x104], bx
je 0x4026e9
mov eax, dword [esp + 0x40]
and dword [esp + 0x10], 0xfffbffff
add eax, 0xfffffff0
call fcn.004010e9
cmp dword [esp + 0x1c], ebx
je 0x4026ff
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x1c]
sar eax, 2
cmp eax, 2
ja 0x402729
mov eax, dword [0x4189d4]
or dword [esp + 0x10], 0x80000
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x50], eax
push ebx
lea eax, [esp + 0x54]
push eax
call fcn.00402a49
lea edi, [esp + 0x50]
jmp 0x402730
mov edi, dword [esp + 0x1c]
add edi, 8
cmp dword [esp + 0x1c], ebx
je 0x402746
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x1c]
sar eax, 2
cmp eax, 1
ja 0x402770
mov eax, dword [0x4189d4]
or dword [esp + 0x10], 0x100000
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x48], eax
push ebx
lea eax, [esp + 0x4c]
push eax
call fcn.00402a49
lea eax, [esp + 0x48]
jmp 0x402777
mov eax, dword [esp + 0x1c]
add eax, 4
push dword [edi]
mov ebx, dword [eax]
lea ecx, [esp + 0x104]
call fcn.004037f2
test dword [esp + 0x10], 0x100000
je 0x4027a5
mov eax, dword [esp + 0x48]
and dword [esp + 0x10], 0xffefffff
add eax, 0xfffffff0
call fcn.004010e9
test dword [esp + 0x10], 0x80000
je 0x40298f
and dword [esp + 0x10], 0xfff7ffff
mov eax, dword [esp + 0x50]
jmp 0x402987
lea eax, [esp + 0x28]
push eax
mov ecx, 0x413ff0
call fcn.00402b95
test al, al
pop ecx
je 0x40289e
push 0x206
lea eax, [esp + 0x51e]
push ebx
push eax
mov word [esp + 0x524], bx
call fcn.00406c40
add esp, 0xc
push 0x104
lea eax, [esp + 0x51c]
push eax
push ebx
call dword [0x412064]
lea edi, [esp + 0x518]
lea esi, [esp + 0x30]
call fcn.004029d4
push 0x5c
push dword [esp + 0x34]
call fcn.0040618a
cmp eax, ebx
pop ecx
pop ecx
jne 0x402834
or eax, 0xffffffff
jmp 0x40283a
sub eax, dword [esp + 0x30]
sar eax, 1
lea ecx, [eax + 1]
lea edx, [esp + 0xa4]
lea eax, [esp + 0x30]
call fcn.00402b5f
lea edi, [esp + 0x30]
call fcn.00402a08
mov eax, dword [esp + 0xa4]
add eax, 0xfffffff0
call fcn.004010e9
mov eax, edi
call fcn.00402a80
mov edi, dword [esp + 0x30]
push edi
call dword [0x412110]
mov esi, eax
cmp esi, ebx
je 0x402896
push str.SetMediaConn
push esi
call dword [0x4120a4]
cmp eax, ebx
je 0x40288f
call eax
push esi
call dword [0x4120e0]
lea eax, [edi - 0x10]
jmp 0x40298a
lea eax, [esp + 0x28]
push eax
mov ecx, str.File
call fcn.00402b95
test al, al
pop ecx
je 0x40298f
cmp dword [esp + 0x1c], ebx
je 0x4028c9
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x1c]
sar eax, 2
jne 0x4028f3
mov eax, dword [0x4189d4]
or dword [esp + 0x10], 0x200000
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x60], eax
push ebx
lea eax, [esp + 0x64]
push eax
call fcn.00402a49
lea edi, [esp + 0x60]
jmp 0x402900
cmp eax, ebx
ja 0x4028fc
call fcn.00406135
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x1c], ebx
je 0x402916
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x1c]
sar eax, 2
cmp eax, 1
ja 0x402940
mov eax, dword [0x4189d4]
or dword [esp + 0x10], 0x400000
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x58], eax
push ebx
lea eax, [esp + 0x5c]
push eax
call fcn.00402a49
lea eax, [esp + 0x58]
jmp 0x402947
mov eax, dword [esp + 0x1c]
add eax, 4
push 1
push dword [edi]
push dword [eax]
call dword [0x4120c8]
test dword [esp + 0x10], 0x400000
je 0x402971
mov eax, dword [esp + 0x58]
and dword [esp + 0x10], 0xffbfffff
add eax, 0xfffffff0
call fcn.004010e9
test dword [esp + 0x10], 0x200000
je 0x40298f
and dword [esp + 0x10], 0xffdfffff
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
call fcn.004010e9
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
call fcn.004010e9
lea esi, [esp + 0x18]
call fcn.00402c34
inc dword [esp + 0x34]
xor esi, esi
jmp 0x401c45
lea esi, [esp + 0x90]
call fcn.00402c34
mov ecx, dword [esp + 0x724]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00406308
mov esp, ebp
pop ebp
ret 0x10