Function at 0x40d230
Capabilities:
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4744f6
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x48d034]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [0x48d034]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor esi, esi
push 0xffffffffffffffff
push esi
mov edi, ecx
push eax
lea eax, [esp + 0x90]
mov dword [esp + 0x38], edi
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], esi
mov word [esp + 0x94], si
call fcn.00403490
lea eax, [esp + 0x84]
push 0x10
push eax
mov dword [esp + 0xb8], esi
call fcn.0040c0c0
add esp, 8
push 0xffffffffffffffff
lea eax, [ebx + 0x10]
push esi
push eax
lea eax, [esp + 0x74]
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], esi
mov word [esp + 0x78], si
call fcn.00403490
lea eax, [esp + 0x13]
push eax
lea ecx, [esp + 0x6c]
push ecx
mov byte [esp + 0xb8], 1
mov edx, dword [edi]
mov edx, dword [edx + 0x1c]
lea eax, [esp + 0x8c]
push eax
push ebx
mov ecx, edi
mov byte [esp + 0x23], 0
call edx
cmp byte [esp + 0x13], 0
jne 0x40d9dd
lea esi, [esp + 0x68]
call fcn.00409c90
test al, al
jne 0x40d375
mov edx, esi
push edx
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x54]
call fcn.0040c230
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea eax, [esp + 0x90]
mov byte [esp + 0xbc], 2
call fcn.00403490
mov byte [esp + 0xb0], 1
cmp dword [esp + 0x64], 8
jb 0x40d375
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0045ca7a
add esp, 4
push 0xffffffffffffffff
xor esi, esi
push esi
lea edx, [esp + 0x8c]
push edx
lea eax, [ebx + 0x2c]
call fcn.00403490
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x70]
push eax
lea eax, [ebx + 0x10]
call fcn.00403490
mov ecx, dword [edi + 0xe8]
cmp ecx, esi
je 0x40d3ac
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ebx
call eax
cmp dword [ebx + 0x98], esi
je 0x40d736
mov edx, dword [edi]
mov eax, dword [edx + 0x20]
xor esi, esi
push esi
push ebx
mov ecx, edi
call eax
mov eax, dword [edi + 0xb4]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
lea esi, [esp + 0x24]
call fcn.004088f0
test al, al
jne 0x40d431
mov esi, 8
cmp dword [esp + 0x80], esi
jb 0x40d3fb
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.0045ca7a
add esp, 4
xor eax, eax
cmp dword [esp + 0x9c], esi
mov dword [esp + 0x7c], eax
mov word [esp + 0x6c], ax
mov dword [esp + 0x80], 7
jb 0x40d42a
mov edx, dword [esp + 0x88]
push edx
call fcn.0045ca7a
add esp, 4
xor al, al
jmp 0x40da27
mov eax, dword [ebx + 0x78]
mov edx, dword [esp + 0x24]
cmp edx, eax
mov ecx, dword [ebx + 0x7c]
jne 0x40d447
mov edx, dword [esp + 0x28]
cmp edx, ecx
je 0x40d470
push 0
push ecx
push eax
mov eax, dword [edi + 0xb4]
lea esi, [esp + 0x30]
call fcn.004089a0
test al, al
je 0x40d4dd
mov eax, dword [esp + 0x24]
cmp eax, dword [ebx + 0x78]
jne 0x40d4dd
mov ecx, dword [esp + 0x28]
cmp ecx, dword [ebx + 0x7c]
jne 0x40d4dd
mov eax, dword [ebx + 0x70]
mov edx, dword [edi]
mov edx, dword [edx + 0x14]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call edx
mov byte [esp + 0xb0], 3
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40d4cc
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
call edx
mov eax, dword [ebx + 0x98]
cmp eax, 1
jne 0x40d4f9
sub esp, 8
lea ecx, [esp + 0x1c]
mov eax, esp
mov dword [esp + 0x2c], esp
call fcn.0040da90
push ebx
push edi
lea ecx, [esp + 0x94]
call fcn.0040dc30
test al, al
jne 0x40d71c
lea eax, [esp + 0x14]
mov byte [esp + 0xb0], 1
call fcn.0040da50
lea esi, [esp + 0x68]
call fcn.00401230
lea esi, [esp + 0x84]
call fcn.00401230
xor al, al
jmp 0x40da27
cmp eax, 2
jne 0x40d71c
mov edi, dword [ebx + 0x68]
lea esi, [ebx + 0x88]
mov dword [esp + 0x34], 0
call fcn.00414310
cmp dword [ebx + 0x70], 0
jne 0x40d559
mov ecx, dword [ebx + 0x68]
mov edx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x90]
push ecx
mov ecx, dword [edx + 0xb4]
lea esi, [esp + 0x38]
call fcn.00408860
test al, al
je 0x40d4cc
mov eax, dword [ebx + 0x68]
mov ecx, dword [ebx + 0x8c]
cmp eax, ecx
jbe 0x40d54e
mov eax, ecx
mov dword [ebx + 0x94], eax
jmp 0x40d71c
mov ecx, dword [ebx + 0x90]
mov eax, dword [ebx + 0x68]
mov dword [esp + 0x20], ecx
add ecx, eax
mov dword [esp + 0x24], ecx
mov ecx, dword [ebx + 0x8c]
cmp eax, ecx
jbe 0x40d578
mov eax, ecx
mov dword [ebx + 0x94], eax
mov edi, dword [ebx + 0x80]
lea esi, [esp + 0x3c]
call fcn.0040acc0
mov byte [esp + 0xb0], 4
mov edx, dword [ebx + 0x80]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x44]
mov ecx, dword [ecx + 0xb4]
push edx
lea esi, [esp + 0x38]
call fcn.00408860
test al, al
jne 0x40d5c5
lea ecx, [esp + 0x3c]
call fcn.00408fa0
jmp 0x40d4cc
mov ecx, dword [esp + 0x40]
mov eax, dword [ebx + 0x80]
cmp eax, ecx
mov dword [esp + 0x48], ecx
ja 0x40d5db
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x20]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], esi
jbe 0x40d694
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push 0
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x50]
add eax, esi
push eax
call edx
test al, al
je 0x40d5b7
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
sub dword [esp + 0x1c], eax
add esi, eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
push esi
push ebx
call edx
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
test eax, eax
jbe 0x40d689
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
lea edx, [esp + 0x20]
push edx
call eax
test eax, eax
je 0x40d67e
mov ecx, dword [esp + 0x20]
test ecx, ecx
jbe 0x40d67e
mov edx, dword [esp + 0x24]
sub edx, edi
cmp edx, ecx
jb 0x40d5b7
push ecx
push eax
push edi
call fcn.0045e9c0
add esp, 0xc
add edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
cmp dword [esp + 0x1c], 0
ja 0x40d5f5
cmp dword [ebx + 0x70], 0
je 0x40d713
mov esi, dword [esp + 0x24]
mov edi, edi
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
test eax, eax
jbe 0x40d6f9
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
lea edx, [esp + 0x1c]
push edx
call eax
test eax, eax
je 0x40d6f9
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jbe 0x40d6f9
mov edx, esi
sub edx, edi
cmp edx, ecx
jb 0x40d5b7
push ecx
push eax
push edi
call fcn.0045e9c0
add esp, 0xc
add edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
test eax, eax
ja 0x40d6a0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
lea ecx, [esp + 0x3c]
call fcn.00408fa0
lea eax, [esp + 0x14]
mov byte [esp + 0xb0], 1
call fcn.0040da50
mov edi, dword [esp + 0x2c]
jmp 0x40d9a5
lea eax, [esp + 0x84]
push eax
call fcn.00409ad0
add esp, 4
test al, al
je 0x40d77a
mov edi, 8
cmp dword [esp + 0x80], edi
jb 0x40d765
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.0045ca7a
add esp, 4
cmp dword [esp + 0x9c], edi
mov dword [esp + 0x7c], esi
mov word [esp + 0x6c], si
jmp 0x40d40d
lea eax, [esp + 0x84]
push eax
call fcn.00409a00
add esp, 4
test al, al
jne 0x40d822
mov edx, dword [edi]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x84]
push eax
mov ecx, edi
call edx
test al, al
jne 0x40d822
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov edx, dword [edx + 0x2c]
lea ecx, [esp + 0x84]
push ecx
push eax
mov ecx, edi
call edx
test al, al
je 0x40d939
mov eax, dword [edi]
mov edx, dword [eax + 0x20]
push esi
push ebx
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x24]
push ebx
mov ecx, edi
call edx
mov eax, dword [ebx + 0x80]
add dword [edi + 0xf8], eax
mov ecx, dword [ebx + 0x84]
adc dword [edi + 0xfc], ecx
mov edi, dword [edi + 0xe8]
cmp edi, esi
je 0x40d808
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
push ebx
mov ecx, edi
call eax
lea esi, [esp + 0x68]
call fcn.00401230
lea esi, [esp + 0x84]
call fcn.00401230
jmp 0x40da25
mov edx, dword [edi]
mov eax, dword [edx + 0x20]
push 0
push ebx
mov ecx, edi
call eax
mov eax, ebx
xor esi, esi
call fcn.0040e3f0
test eax, eax
jbe 0x40d8c6
mov cl, byte [edi + 0xe4]
test cl, cl
jne 0x40d8c6
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x40d85c
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x40d861
call fcn.0045cf3a
mov edx, dword [ebx + 4]
mov ecx, dword [edx + esi*8]
lea eax, [edx + esi*8]
mov eax, dword [eax + 4]
test eax, eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
je 0x40d885
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
lea edx, [esp + 0x84]
mov byte [esp + 0xb0], 5
mov eax, dword [edi]
mov eax, dword [eax + 0x18]
push edx
push ecx
mov ecx, edi
call eax
test al, al
lea eax, [esp + 0x2c]
je 0x40d926
mov byte [esp + 0xb0], 1
call fcn.0040da50
mov eax, ebx
add esi, 1
call fcn.0040e3f0
cmp esi, eax
jb 0x40d83f
mov dl, byte [edi + 0xe4]
test dl, dl
je 0x40d955
cmp dword [esp + 0x80], 8
jb 0x40d8eb
mov eax, dword [esp + 0x6c]
push eax
call fcn.0045ca7a
add esp, 4
xor eax, eax
cmp dword [esp + 0x9c], 8
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], eax
mov word [esp + 0x6c], ax
jb 0x40d42a
mov ecx, dword [esp + 0x88]
push ecx
call fcn.0045ca7a
add esp, 4
xor al, al
jmp 0x40da27
mov cl, byte [edi + 0xe4]
mov byte [esp + 0xb0], 1
call fcn.0040da50
lea esi, [esp + 0x68]
call fcn.00401230
lea esi, [esp + 0x84]
call fcn.00401230
xor al, al
jmp 0x40da27
cmp dword [esp + 0x9c], 8
mov ecx, dword [ebx + 0x60]
mov eax, dword [esp + 0x88]
jae 0x40d970
lea eax, [esp + 0x88]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x40d984
call esi
lea edx, [ebx + 0x58]
push edx
lea eax, [ebx + 0x50]
push eax
lea ecx, [ebx + 0x48]
push ecx
lea eax, [esp + 0x90]
call fcn.004091a0
add esp, 0xc
test al, al
jne 0x40d9a5
call esi
mov edx, dword [edi]
mov eax, dword [edx + 0x24]
push ebx
mov ecx, edi
call eax
mov ecx, dword [ebx + 0x80]
add dword [edi + 0xf8], ecx
mov edx, dword [ebx + 0x84]
adc dword [edi + 0xfc], edx
mov edi, dword [edi + 0xe8]
xor esi, esi
cmp edi, esi
je 0x40d9dd
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
push ebx
mov ecx, edi
call edx
mov edi, 8
cmp dword [esp + 0x80], edi
jb 0x40d9f8
mov eax, dword [esp + 0x6c]
push eax
call fcn.0045ca7a
add esp, 4
cmp dword [esp + 0x9c], edi
mov word [esp + 0x6c], si
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], 7
jb 0x40da25
mov ecx, dword [esp + 0x88]
push ecx
call fcn.0045ca7a
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.0045ca6b
mov esp, ebp
pop ebp
ret 8