Function at 0x41e2b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x70
push ebx
push esi
cmp dword [esp + 0x7c], 0x80000001
push edi
push ebp
mov ebp, dword [esp + 0x88]
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x14], ecx
jl 0x41e2df
cmp dword [esp + 0x84], 0x7fffffff
jle 0x41e2ef
mov eax, dword [0x44fa1c]
push eax
push 0x28
call fcn.0041ba60
add esp, 8
cmp dword [0x453d70], 0
jne 0x41e318
push 0x44ff50
push 0x44fb48
call fcn.0042c940
add esp, 8
test eax, eax
jne 0x41e318
mov eax, dword [0x44ff58]
mov dword [0x44fb48], eax
call fcn.0041df70
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x41e357
mov eax, dword [esp + 0x14]
cmp eax, 3
je 0x41e346
cmp eax, 5
je 0x41e353
mov eax, dword [0x44fa1c]
push eax
push 0xd
call fcn.0041ba60
add esp, 8
jmp 0x41e357
mov dword [esp + 0x14], 1
mov ebx, 0x84
mov byte [ebp + 7], 2
cmp dword [0x453d70], 0
jne 0x41e378
cmp dword [esp + 0x10], 0xfffffffa
jne 0x41e36f
mov dword [esp + 0x10], 1
cmp dword [0x453d70], 0
je 0x41e3d7
cmp dword [esp + 0x10], 0xfffffffa
je 0x41e3a7
cmp dword [esp + 0x10], 1
je 0x41e3a7
lea edi, [ebp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41e3a7
mov eax, dword [0x44fa1c]
push eax
push 0x18
call fcn.0041ba60
add esp, 8
cmp dword [0x453d70], 0
je 0x41e3d7
cmp dword [esp + 0x10], 0xfffffffa
je 0x41e3d7
cmp dword [esp + 0x10], 1
je 0x41e3d7
cmp dword [ebp + 0x11c], 4
je 0x41e3d7
mov eax, dword [0x44fa1c]
push eax
push 0x16
call fcn.0041ba60
add esp, 8
cmp dword [esp + 0x10], 0xfffffffc
jne 0x41e3e5
mov edi, str.COM1
jmp 0x41e3ea
mov edi, 0x44fb48
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, 0x44f7a0
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 1
sbb eax, eax
inc eax
push eax
call fcn.0041e0a0
cmp eax, 0x40
jge 0x41e464
cmp dword [0x453d70], 0
je 0x41e432
cmp dword [esp + 0x10], 0xfffffffa
je 0x41e464
cmp eax, dword [0x44b1e8]
jge 0x41e464
lea eax, [eax + eax*2]
mov ecx, dword [esp + 0x84]
cmp dword [eax*4 + 0x450340], ecx
je 0x41e464
cmp dword [esp + 0x10], 0xfffffffd
je 0x41e464
mov eax, dword [0x44fa1c]
push eax
push 0x3b
call fcn.0041ba60
add esp, 8
mov ecx, dword [esp + 0x84]
push ecx
call fcn.0041e1a0
test eax, eax
je 0x41e56c
cmp dword [esp + 0x10], 0xffffffff
je 0x41e4e0
cmp dword [0x453d70], 0
je 0x41e4c2
push 0x44ff64
mov eax, dword [0x44f9a8]
mov ecx, dword [eax]
push ecx
call fcn.0042c940
add esp, 8
test eax, eax
jne 0x41e4c2
push str.USER
push 0x44fb48
call fcn.0042c940
add esp, 8
test eax, eax
jne 0x41e4c2
mov eax, 1
jmp 0x41e553
mov eax, dword [0x44f9a8]
mov ecx, dword [eax]
push ecx
push 0x44fb48
call fcn.0042c940
add esp, 8
cmp eax, 1
sbb eax, eax
neg eax
jmp 0x41e553
push 0
push 0
push 3
push 0
push 3
push 0
push 0x44fb48
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov esi, eax
je 0x41e551
lea eax, [esp + 0x4c]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
push eax
push esi
call edi
lea ecx, [esp + 0x18]
mov eax, dword [0x44f9a8]
push ecx
mov edx, dword [eax + 4]
push edx
call fcn.0042cbd0
add esp, 4
push eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x68], ecx
jne 0x41e551
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x78], eax
jne 0x41e551
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x7c], eax
jne 0x41e551
mov eax, 1
jmp 0x41e553
xor eax, eax
test eax, eax
jne 0x41e5f3
mov ecx, dword [esp + 0x84]
push 1
push 0
push ecx
call fcn.0041edf0
push ebx
mov edi, 0x44fb48
call fcn.0041f280
mov ebx, eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov edi, 0x44fb48
call fcn.0041f250
mov ecx, 0xffffffff
mov dword [ebx], eax
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, dword [ebx]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov dword [ebx + 8], ecx
cmp dword [0x44fb2c], 0
jne 0x41e5c8
mov eax, dword [0x46706c]
mov dword [ebx + 0x68], eax
cmp dword [esp + 0x14], 1
je 0x41e70a
cmp dword [esp + 0x14], 0
je 0x41e70a
mov eax, dword [ebx + 0x60]
or eax, 0x200
mov dword [ebx + 0x60], eax
and eax, 0xfffffeff
jmp 0x41e71a
mov eax, dword [0x44f9a8]
mov ecx, dword [esp + 0x14]
cmp dword [eax + 8], ecx
je 0x41e611
mov eax, dword [0x44fa1c]
push eax
push 0x14
call fcn.0041ba60
add esp, 8
cmp byte [ebp + 2], 2
mov eax, dword [0x44f9a8]
jne 0x41e622
or dword [eax + 0xc], 0x10
jmp 0x41e626
and dword [eax + 0xc], 0xffffffef
cmp dword [ebp + 0x120], 2
mov eax, dword [0x44f9a8]
jne 0x41e63a
or dword [eax + 0x60], 8
jmp 0x41e63e
and dword [eax + 0x60], 0xfffffff7
cmp dword [ebp + 0x120], 1
mov eax, dword [0x44f9a8]
jne 0x41e652
or dword [eax + 0x60], 0x10
jmp 0x41e656
and dword [eax + 0x60], 0xffffffef
cmp dword [ebp + 0x124], 1
mov eax, dword [0x44f9a8]
jne 0x41e66a
or dword [eax + 0x60], 0x20
jmp 0x41e66e
and dword [eax + 0x60], 0xffffffdf
cmp dword [esp + 0x14], 1
je 0x41e696
cmp dword [esp + 0x14], 0
je 0x41e696
mov eax, dword [0x44f9a8]
or dword [eax + 0x60], 0x200
mov eax, dword [0x44f9a8]
and dword [eax + 0x60], 0xfffffeff
jmp 0x41e6cc
cmp dword [ebp + 0x12c], 2
mov eax, dword [0x44f9a8]
je 0x41e6b9
or dword [eax + 0x60], 0x100
mov eax, dword [0x44f9a8]
and dword [eax + 0x60], 0xfffffdff
jmp 0x41e6cc
and dword [eax + 0x60], 0xfffffeff
mov eax, dword [0x44f9a8]
or dword [eax + 0x60], 0x200
cmp dword [0x453d70], 0
je 0x41eb2d
mov eax, dword [0x44f9a8]
cmp dword [eax + 0x3c], 0
je 0x41eb2d
mov eax, dword [ebp + 0x11c]
cmp eax, 4
je 0x41eb2d
mov ecx, dword [0x44f9a8]
pop ebp
pop edi
pop esi
pop ebx
mov dword [ecx + 0x40], eax
add esp, 0x70
ret 8
mov eax, dword [ebx + 0x60]
or eax, 0x100
mov dword [ebx + 0x60], eax
and eax, 0xfffffdff
cmp dword [esp + 0x10], 0
mov dword [ebx + 0x60], eax
jl 0x41e763
cmp dword [esp + 0x14], 1
mov eax, dword [esp + 0x10]
mov dword [ebx + 4], eax
jne 0x41e9c4
cmp eax, 1
jne 0x41e9c4
or dword [ebx + 0xc], 0x40
mov eax, dword [0x453d70]
mov dword [ebx + 0x3c], eax
cmp byte [ebp + 2], 2
jne 0x41e9ce
mov eax, dword [0x45062c]
or dword [eax + 0xc], 0x10
jmp 0x41e9ce
cmp dword [0x453d70], 0
je 0x41e839
cmp dword [esp + 0x10], 0xfffffffa
jne 0x41e839
mov dword [ebx + 0x3c], 1
cmp dword [ebp + 0x11c], 4
jne 0x41e795
mov dword [ebp + 0x11c], 1
mov eax, dword [ebp + 0x11c]
lea esi, [ebp + 0x18]
mov edi, esi
mov ecx, 0xffffffff
mov dword [ebx + 0x40], eax
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x41e7dc
mov ecx, dword [str.Unit]
mov eax, str.Unit
push 0xa
lea edx, [ebp + 0x1d]
push edx
mov dword [esi], ecx
mov ax, word [eax + 4]
mov ecx, dword [esp + 0x8c]
mov word [esi + 4], ax
push ecx
call fcn.0042be90
add esp, 0xc
push esi
call fcn.004363e0
add esp, 4
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
jne 0x41e7f7
push 0
push 0xd
push ebx
call fcn.0041f000
cmp dword [ebp + 0x11c], 1
jne 0x41e9c4
mov eax, dword [ebx + 4]
push eax
call fcn.00436450
add esp, 4
mov eax, dword [ebx + 4]
push eax
call fcn.00436400
add esp, 4
test eax, eax
jne 0x41e9c4
mov eax, dword [0x44fa1c]
push eax
push 0x72
call fcn.0041ba60
add esp, 8
jmp 0x41e9c4
xor eax, eax
mov al, byte [ebp + 4]
movsx edi, byte [eax + 0x44fd40]
or edi, 0x8000
xor eax, eax
mov al, byte [ebp + 6]
movsx ecx, byte [eax + 0x44fd38]
xor eax, eax
mov dword [esp + 0x18], ecx
mov al, byte [ebp + 7]
dec eax
cmp eax, 4
ja case.0x41e866.2
jmp dword [eax*4 + 0x41eb38]
or dword [ebx + 0xc], 4
jmp 0x41e899
push 0
push 0x44fb48
call fcn.0042cc20
add esp, 8
test eax, eax
jne 0x41e899
mov byte [ebp + 7], 2
jmp case.0x41e866.2
push 0x44fb48
call fcn.00429510
add esp, 4
mov byte [ebp + 7], 1
or edi, 0x500
mov esi, 1
mov eax, dword [esp + 0x18]
push 0x180
push eax
push edi
push 0x44f7a0
call fcn.0042c220
add esp, 0x10
mov dword [ebx + 4], eax
test eax, eax
jge 0x41e904
cmp dword [0x44fa08], 0
je 0x41e8dd
mov eax, esi
inc esi
cmp eax, 1
je 0x41e8f2
cmp eax, 2
je 0x41e8fb
mov eax, dword [0x4524e4]
mov ecx, dword [0x4524e0]
push eax
push ecx
push ebx
call fcn.0041f000
jmp 0x41e8a8
mov byte [ebp + 4], 1
and edi, 0xfffffffd
jmp 0x41e8a8
mov byte [ebp + 4], 3
or edi, 1
jmp 0x41e8a8
cmp byte [ebp + 7], 1
jne 0x41e90e
or dword [ebx + 0xc], 8
xor eax, eax
mov al, byte [ebp + 4]
mov dword [ebx + 0x30], eax
xor eax, eax
mov al, byte [ebp + 6]
mov dword [ebx + 0x34], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebx + 0x28], ecx
cmp dword [ebp + 8], 1
jne 0x41e995
push 2
mov dword [0x44f9a8], ebx
push 0
mov eax, dword [ebx + 4]
push eax
call fcn.0042c880
add esp, 0xc
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x30], 3
je 0x41e995
mov esi, dword [ebx + 0x24]
mov eax, dword [ebx + 0x1c]
cmp esi, eax
jl 0x41e955
mov esi, eax
test esi, esi
jle 0x41e995
push 2
mov eax, esi
neg eax
push eax
mov ecx, dword [ebx + 4]
push ecx
call fcn.0042c880
add esp, 0xc
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 4]
push ecx
push esi
push edx
push eax
call fcn.004226b0
add esp, 0x10
mov ecx, eax
sub ecx, esi
lea edx, [eax - 1]
add dword [ebx + 0x24], ecx
test eax, eax
mov dword [ebx + 0x18], edx
mov dword [ebx + 0x14], eax
je 0x41e949
cmp dword [esp + 0x14], 7
jne 0x41e9c4
cmp dword [ebx + 0x24], 0
jne 0x41e9ab
or dword [ebx + 0xc], 0x80
jmp 0x41e9c4
push 1
mov eax, dword [ebx + 4]
push 0xffffffffffffffff
push eax
call fcn.0042c880
add esp, 0xc
mov dword [ebx + 0x24], eax
dec dword [ebx + 0x14]
dec dword [ebx + 0x18]
cmp byte [ebp + 2], 2
jne 0x41e9ce
or dword [ebx + 0xc], 0x10
mov ecx, dword [ebx + 0x60]
and ecx, 0xffffdfff
mov dword [ebx + 0x60], ecx
cmp dword [0x44fb2c], 0
je 0x41ea03
or ecx, 0x80
mov dword [ebx + 0x60], ecx
and ecx, 0xfffffff7
mov dword [ebx + 0x60], ecx
and ecx, 0xffffffef
mov dword [ebx + 0x60], ecx
or ecx, 0x20
mov dword [ebx + 0x60], ecx
jmp 0x41eaa7
mov eax, dword [ebp + 0x128]
cmp eax, 2
jne 0x41ea13
or ecx, 0x40
jmp 0x41ea33
cmp eax, 1
jne 0x41ea20
or ecx, 0x80
jmp 0x41ea33
cmp eax, 3
jne 0x41ea2d
or ecx, 0xc0
jmp 0x41ea33
and ecx, 0xffffff3f
mov dword [ebx + 0x60], ecx
cmp dword [ebp + 0x120], 2
jne 0x41ea45
or dword [ebx + 0x60], 8
jmp 0x41ea49
and dword [ebx + 0x60], 0xfffffff7
cmp dword [ebp + 0x120], 1
jne 0x41ea58
or dword [ebx + 0x60], 0x10
jmp 0x41ea5c
and dword [ebx + 0x60], 0xffffffef
cmp dword [ebp + 0x124], 1
jne 0x41ea6b
or dword [ebx + 0x60], 0x20
jmp 0x41ea6f
and dword [ebx + 0x60], 0xffffffdf
mov eax, dword [ebp + 0x12c]
test eax, eax
je 0x41eaa7
cmp eax, 1
jne 0x41ea87
or dword [ebx + 0x60], 0x100
jmp 0x41ea8e
and dword [ebx + 0x60], 0xfffffeff
cmp dword [ebp + 0x12c], 2
jne 0x41eaa0
or dword [ebx + 0x60], 0x200
jmp 0x41eaa7
and dword [ebx + 0x60], 0xfffffdff
cmp dword [0x44fb2c], 0
jne 0x41eac1
cmp dword [0x44fb30], 0
je 0x41eac1
mov edx, dword [0x44fb24]
jmp 0x41eb02
mov edx, 1
cmp edx, dword [0x44b1e8]
jge 0x41eb21
mov esi, 0x450350
xor ecx, ecx
mov eax, dword [esi]
test eax, eax
jne 0x41eaf4
cmp dword [0x44fb2c], ecx
jne 0x41eb02
test eax, eax
jne 0x41eaf4
cmp dword [0x44fb2c], ecx
jne 0x41eaf4
cmp dword [esi + 4], ecx
je 0x41eb02
add esi, 0xc
inc edx
cmp edx, dword [0x44b1e8]
jl 0x41ead5
jmp 0x41eb1b
lea eax, [edx + edx*2]
mov ecx, dword [esp + 0x84]
shl eax, 2
mov dword [eax + 0x450340], ecx
mov dword [eax + 0x450344], ebx
cmp edx, dword [0x44b1e8]
jne 0x41eb2d
push 0
push 3
push ebx
call fcn.0041f000
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x70
ret 8