Function at 0x4a5cc0
Capabilities:
Accept command line arguments
Create thread
Get disk information
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a5ff
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea ecx, [ebx + 0x1c]
mov dword [ebp - 0x40], 0
push 3
mov byte [ebp - 0x2d], 0
call fcn.004be4b0
or edi, 0xffffffff
mov dword [ebp - 0x2c], eax
mov ecx, ebx
test eax, eax
je 0x4a5ea8
lea esi, [eax + 4]
call fcn.004aad60
mov edx, eax
mov ecx, esi
call fcn.00409d00
test al, al
je 0x4a5d33
mov ecx, ebx
call fcn.004a9d60
jmp 0x4a67e5
lea ecx, [ebx + 0x30]
push esi
call fcn.004adc60
mov edx, esi
lea ecx, [ebp - 0x34]
call fcn.00493aa0
mov dword [ebp - 4], 0
mov edx, dword [eax]
mov esi, dword [0x5d655c]
add esi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x4a5da4
cmp dword [esi + 0xc], 0
jl 0x4a5d96
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x4a5d96
call fcn.0040a1d0
mov dword [ebp - 0x28], eax
lea edx, [esi + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a5d8c
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x28]
add eax, 0x10
mov dword [0x5d655c], eax
jmp 0x4a5da4
push dword [edx - 0xc]
mov ecx, 0x5d655c
push edx
call fcn.004126c0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a5dc5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5d655c]
mov edx, dword [eax - 0xc]
test edx, edx
jle 0x4a5df7
lea esi, [edx - 1]
test esi, esi
js 0x4a682b
cmp esi, edx
jg 0x4a682b
cmp word [eax + esi*2], 0x5c
je 0x4a5df7
push 0x5c
mov ecx, 0x5d655c
call fcn.00492b30
mov ecx, ebx
call fcn.004aad60
lea ecx, [ebp - 0x28]
push dword [eax]
call fcn.004127e0
mov dword [ebp - 4], 2
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebx + 0x130]
call fcn.004a41b0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a5e3f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
lea ecx, [ebx + 4]
mov esi, dword [ecx]
sub esi, 0x10
mov edx, dword [edx + 4]
lea eax, [edx - 0x10]
mov dword [ebp - 0x2c], eax
cmp eax, esi
je 0x4a5e9f
cmp dword [esi + 0xc], 0
jl 0x4a5e96
mov eax, dword [eax]
cmp eax, dword [esi]
jne 0x4a5e96
mov ecx, dword [ebp - 0x2c]
call fcn.0040a1d0
mov dword [ebp - 0x2c], eax
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4a5e84
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x2c]
lea esi, [ebx + 0x30]
add eax, 0x10
mov byte [ebp - 0x2d], 1
mov dword [ebx + 4], eax
jmp 0x4a5eb8
push dword [edx - 0xc]
push edx
call fcn.004126c0
mov byte [ebp - 0x2d], 1
lea esi, [ebx + 0x30]
jmp 0x4a5eb8
lea esi, [ebx + 0x30]
call fcn.004aad60
push eax
mov ecx, esi
call fcn.004adc60
mov edx, dword [ebx + 0x28]
lea ecx, [esi + 0x74]
mov esi, dword [ecx]
sub esi, 0x10
lea eax, [edx - 0x10]
mov dword [ebp - 0x2c], eax
cmp eax, esi
je 0x4a5f11
cmp dword [esi + 0xc], 0
jl 0x4a5f08
mov eax, dword [eax]
cmp eax, dword [esi]
jne 0x4a5f08
mov ecx, dword [ebp - 0x2c]
call fcn.0040a1d0
mov dword [ebp - 0x2c], eax
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4a5efa
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x2c]
add eax, 0x10
mov dword [ebx + 0xa4], eax
jmp 0x4a5f11
push dword [edx - 0xc]
push edx
call fcn.004126c0
cmp byte [0x5d6558], 0
je 0x4a6039
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4a6803
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x28]
push 0x12
push str.Full_command_line:
call fcn.00416df0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
test edx, edx
je 0x4a5f79
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a5f60
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00416df0
lea eax, [ebp - 0x28]
mov ecx, 0x5d6524
push eax
call fcn.004c8520
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a5fa8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [0x5d6558], 0
je 0x4a6039
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4a680d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0xb
lea ecx, [ebp - 0x28]
push 0x1c
push str.Command_line_to_pass_to_MSI:
call fcn.00416df0
mov esi, dword [ebx + 0x28]
test esi, esi
je 0x4a600a
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4a5ff1
sub edx, ecx
lea ecx, [ebp - 0x28]
sar edx, 1
push edx
push esi
call fcn.00416df0
lea eax, [ebp - 0x28]
mov ecx, 0x5d6524
push eax
call fcn.004c8520
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a6039
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea esi, [ebx + 0x90]
lea ecx, [ebx + 0x178]
push esi
call fcn.004b4a50
mov edx, esi
lea ecx, [ebp - 0x2c]
call fcn.00493aa0
mov dword [ebp - 4], 0xe
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a6085
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebx + 0x30]
call fcn.004ae3a0
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4a60fc
mov dword [ebp - 4], 0x10
mov ecx, dword [ebx + 0x104]
sub ecx, 0x10
call fcn.0040a1d0
lea esi, [eax + 0x10]
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x28]
mov ecx, ebx
mov dword [ebp - 0x40], 1
call fcn.004aac40
mov eax, 1
mov dword [ebp - 0x40], eax
and eax, 0xfffffffe
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x4a60f2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
jmp 0x4a67e5
lea eax, [ebx + 0x30]
mov dword [ebp - 0x50], 0x58fa78
lea esi, [ebx + 0x1f4]
mov dword [ebp - 0x50], 0x58fbd0
mov dword [esi + 0x70], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0x15
test byte [ebx + 0x74], 2
je 0x4a621b
push eax
mov ecx, ebx
call fcn.004a68f0
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
call fcn.0049c4c0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
push ecx
mov esi, esp
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x3c], esi
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.0040a1d0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0x17
mov byte [ebp - 4], 0x15
lea ecx, [ebx + 0x30]
call fcn.004ade40
lea esi, [ebx + 0x1f4]
mov ecx, esi
call fcn.0049bf20
push eax
lea ecx, [ebx + 0x30]
call fcn.004b28d0
mov edx, dword [ebx + 0x250]
lea ecx, [edx - 0x10]
mov dword [ebp - 0x2c], ecx
lea eax, [edx - 0x10]
mov ecx, dword [ebx + 0x10c]
sub ecx, 0x10
mov dword [ebp - 0x34], ecx
cmp eax, ecx
je 0x4a620d
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x28], eax
jl 0x4a61fe
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x4a61fe
mov ecx, dword [ebp - 0x2c]
call fcn.0040a1d0
mov edx, dword [ebp - 0x28]
mov ecx, edi
mov dword [ebp - 0x2c], eax
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a61f3
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x2c]
add eax, 0x10
mov dword [ebx + 0x10c], eax
jmp 0x4a620d
push dword [edx - 0xc]
lea ecx, [ebx + 0x10c]
push edx
call fcn.004126c0
lea eax, [ebx + 0x23c]
mov ecx, ebx
push eax
call fcn.004a9c70
push 6
lea ecx, [ebx + 0x1c]
call fcn.004be4b0
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4a6237
push 1
mov ecx, esi
call fcn.0049bb20
jmp 0x4a626f
push 7
lea ecx, [ebx + 0x1c]
call fcn.004be4b0
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4a624c
push 1
jmp 0x4a6268
push 8
lea ecx, [ebx + 0x1c]
call fcn.004be4b0
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4a626f
push 0
mov ecx, esi
call fcn.0049bb20
push 0
mov ecx, esi
call fcn.0049bd60
cmp byte [ebp + 8], 0
je 0x4a6286
mov dword [ebx + 0xc0], 3
xor ebx, ebx
jmp 0x4a67c7
mov ecx, esi
call fcn.0049ba30
test al, al
mov byte [ebx + 0x1e8], al
mov ecx, ebx
sete byte [0x5d0b04]
call fcn.004a6a70
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4a6817
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 0x1a
mov eax, str.Advinst_
lea ecx, [ebp - 0x34]
test eax, 0xffff0000
jne 0x4a62db
movzx eax, ax
push eax
call fcn.00412350
jmp 0x4a62e7
push 8
push str.Advinst_
call fcn.004126c0
mov byte [ebp - 4], 0x1b
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebx + 0x30]
call fcn.004ae4c0
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x34]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00416df0
mov byte [ebp - 4], 0x1b
mov eax, edi
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a6327
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x34]
push edi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [0x5d0ccc]
mov esi, eax
mov eax, ecx
cmp esi, ecx
je 0x4a635d
mov edx, dword [0x5d0cc8]
mov ecx, 0x5d0cc8
call dword [edx + 4]
mov ecx, esi
mov eax, esi
mov dword [0x5d0ccc], ecx
test eax, eax
je 0x4a6384
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x5d0ccc]
cmp eax, 0xb7
jne 0x4a6384
push ecx
mov byte [0x5d0cd0], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x4a63d9
cmp byte [0x5d0cd0], 0
je 0x4a6396
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x4a63d9
test ecx, ecx
je 0x4a63d9
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0
push 0x5d0cc4
push 0x4bf330
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, dword [0x5d0cd8]
je 0x4a63d9
mov edx, dword [0x5d0cd4]
mov ecx, 0x5d0cd4
call dword [edx + 4]
mov dword [0x5d0cd8], esi
cmp dword [ebp - 0x28], 0
jne 0x4a640d
cmp byte [0x5d0cd0], 0
je 0x4a640d
mov dl, 1
mov dword [ebx + 0xc0], 3
mov ecx, 0xcc
call fcn.0049e010
or esi, 0xffffffff
mov dword [ebp - 0x28], 1
jmp 0x4a67ab
mov ecx, ebx
call fcn.004a8840
push ecx
push 0
push 0xdc
lea ecx, [ebx + 0x178]
call fcn.004b4cb0
test byte [ebx + 0x74], 2
je 0x4a6447
push 0xdc
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x58d430
push eax
mov ecx, ebx
mov dword [ebp - 0x14], ebx
call fcn.004a72a0
cmp byte [ebx + 0x1cc], 0
jne 0x4a6528
push 0x12
lea ecx, [ebx + 0x1c]
call fcn.004be4b0
test eax, eax
jne 0x4a6528
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4a6821
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 0x22
lea eax, [ebp - 0x2c]
push eax
push 0x12
lea ecx, [ebx + 0x1c]
call fcn.004be310
mov byte [ebp - 4], 0x1b
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a64b0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 0x20c]
mov dword [ebp - 0x28], 0x58d398
cmp dword [eax - 0xc], 0
je 0x4a652b
cmp byte [ebx + 0x1e8], 0
jne 0x4a652b
mov edx, 0x5d0e98
lea ecx, [ebp - 0x28]
call fcn.004c11c0
test al, al
je 0x4a652b
lea eax, [ebx + 0x178]
mov dword [ebp - 0x24], 0x58d438
mov dword [ebp - 0x20], eax
mov ecx, ebx
lea eax, [ebx + 0x210]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], eax
lea eax, [ebx + 0x20c]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push 0x101
push eax
call fcn.004a72a0
cmp dword [ebp - 0x14], 1
jne 0x4a652b
mov dword [ebp - 0x28], 0
jmp 0x4a67ab
or esi, 0xffffffff
test byte [ebx + 0x74], 4
je 0x4a655d
push 0x8a
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x58d428
push eax
mov ecx, ebx
mov dword [ebp - 0x18], ebx
call fcn.004a72a0
cmp byte [ebp - 0x14], 0
je 0x4a655d
mov dword [ebp - 0x28], 1
jmp 0x4a67ab
mov ecx, ebx
call fcn.004a6ca0
cmp byte [ebp - 0x2d], 0
jne 0x4a660c
mov eax, dword [ebx + 0x74]
test al, 1
je 0x4a660c
test eax, 0x2000
jne 0x4a660c
mov ecx, ebx
call fcn.004aad60
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jl 0x4a660c
test ecx, ecx
js 0x4a682b
cmp word [eax], 0x5c
jne 0x4a65c5
cmp ecx, 1
jl 0x4a6835
cmp word [eax + 2], 0x5c
jne 0x4a65c5
cmp ecx, 2
jl 0x4a683f
cmp word [eax + 4], 0x5c
jne 0x4a660c
xor ecx, ecx
test ecx, ecx
js 0x4a682b
mov eax, dword [edx]
cmp ecx, dword [eax - 0xc]
jg 0x4a682b
mov ax, word [eax + ecx*2]
mov word [ebp + ecx*2 - 0x18], ax
inc ecx
cmp ecx, 3
jl 0x4a65c7
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x4a660c
mov ecx, ebx
call fcn.004a9d60
mov ebx, eax
jmp 0x4a67ae
mov ecx, ebx
call fcn.004a6e20
mov ecx, dword [ebx + 0x28]
sub ecx, 0x10
call fcn.0040a1d0
add eax, 0x10
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 0x2e
mov eax, dword [ebp - 0x38]
cmp dword [eax - 0xc], 0
jne 0x4a6738
mov edx, dword [ebx + 0x204]
lea ecx, [edx - 0x10]
mov dword [ebp - 0x2c], ecx
lea ecx, [eax - 0x10]
lea eax, [edx - 0x10]
mov dword [ebp - 0x3c], ecx
cmp eax, ecx
je 0x4a669e
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
mov dword [ebp - 0x28], edi
mov edi, dword [ebp - 0x34]
jl 0x4a6692
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x4a6692
mov ecx, dword [ebp - 0x2c]
call fcn.0040a1d0
mov dword [ebp - 0x2c], eax
mov ecx, esi
mov eax, dword [ebp - 0x28]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4a6687
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x2c]
add eax, 0x10
mov dword [ebp - 0x38], eax
jmp 0x4a669e
push dword [edx - 0xc]
lea ecx, [ebp - 0x38]
push edx
call fcn.004126c0
push 0
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x14]
call fcn.004b5d20
add esp, 4
mov byte [ebp - 4], 0x2f
mov edx, dword [eax]
lea ecx, [edx - 0x10]
mov dword [ebp - 0x3c], ecx
lea eax, [edx - 0x10]
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
mov dword [ebp - 0x28], ecx
cmp eax, ecx
je 0x4a671a
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x34]
jl 0x4a670e
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x4a670e
mov ecx, dword [ebp - 0x3c]
call fcn.0040a1d0
mov dword [ebp - 0x3c], eax
mov ecx, esi
mov eax, dword [ebp - 0x2c]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4a6703
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x3c]
add eax, 0x10
mov dword [ebp - 0x38], eax
jmp 0x4a671a
push dword [edx - 0xc]
lea ecx, [ebp - 0x38]
push edx
call fcn.004126c0
mov byte [ebp - 4], 0x2e
mov eax, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a6738
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebx + 0x184]
call fcn.004b46f0
mov eax, dword [ebx + 0x22c]
mov ecx, ebx
mov dword [ebx + 0xc0], eax
mov al, byte [ebx + 0x230]
mov byte [ebx + 0xc4], al
lea eax, [ebp - 0x38]
push eax
call fcn.004a72f0
mov ecx, ebx
mov dword [ebp - 0x28], eax
call fcn.004abc50
lea eax, [ebx + 0x30]
mov dword [ebp - 0x58], 0x58d420
mov dword [ebp - 0x54], eax
mov ecx, ebx
push 0x10a
lea eax, [ebp - 0x58]
push eax
call fcn.004a72a0
mov byte [ebp - 4], 0x1b
mov eax, esi
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a67ab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x28]
mov byte [ebp - 4], 0x15
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x4a67c7
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x50]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004acf90
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005214e1
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004126a0
push 0x80004005
call fcn.004126a0
push 0x80004005
call fcn.004126a0
push 0x80004005
call fcn.004126a0
push 0x80070057
call fcn.004126a0
push 0x80070057
call fcn.004126a0
push 0x80070057
call fcn.004126a0
int3