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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
mov eax, dword [0x100a9450]
xor eax, esp
mov dword [esp + 0x148], eax
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push edi
xor eax, eax
push 0xffffffffffffffff
push edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, dword [ecx + 0x40]
push edi
push ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], edi
mov ecx, dword [eax + 4]
push esi
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x30], edi
call ecx
add esp, 0x18
mov dword [esp + 0x10], eax
cmp eax, edi
jne 0x1004e994
lea eax, [edi - 2]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.10063ade
mov esp, ebp
pop ebp
ret
mov edi, eax
push 0
push 0x186a0
mov ecx, edi
mov edx, esi
call fcn.1002e6b0
mov edx, dword [str.:clean]
mov cl, byte [0x100a5272]
mov ax, word [0x100a5270]
mov dword [esp + 0x50], edx
lea edx, [esp + 0x28]
mov byte [esp + 0x56], cl
mov ecx, dword [esp + 0x14]
push edx
mov word [esp + 0x58], ax
call fcn.1004e130
add esp, 0xc
test eax, eax
je 0x1004e9ec
cmp eax, 1
jne 0x1004ee68
mov dword [esp + 0x14], eax
jmp 0x1004eedc
lea esi, [edi + 0xb8]
mov eax, 0x100a5cd0
call fcn.1002e830
test eax, eax
je 0x1004ee0b
mov eax, dword [esi]
mov ecx, dword [edi + 0x20]
mov ecx, dword [ecx + 0xc]
push 4
lea edx, [esp + 0x3c]
push edx
mov edx, dword [eax + 0x258]
mov eax, dword [eax + 0x254]
push edx
push eax
push edi
call ecx
add esp, 0x14
cmp eax, 4
jne 0x1004ee0b
mov eax, dword [esp + 0x38]
mov edx, eax
sub edx, dword [esp + 0x20]
cmp edx, 0x100
ja 0x1004ee0b
mov ecx, dword [edi + 0x20]
push 0x100
lea edx, [esp + 0x54]
push edx
cdq
push edx
push eax
mov eax, dword [ecx + 0xc]
push edi
call eax
add esp, 0x14
cmp eax, 0x100
jne 0x1004ee0b
push 0x44
xor ebx, ebx
call fcn.10063c44
mov edi, eax
add esp, 4
test edi, edi
je 0x1004ee0b
or ecx, 0xffffffff
xor edx, edx
mov dword [edi], ecx
cmp ecx, 0xffffffff
je 0x1004eaa3
mov al, byte [ecx + 0x100a5ce4]
cmp byte [edx + 0x100a5ce4], al
je 0x1004eaa3
cmp al, 0x3f
je 0x1004eaa3
mov ecx, dword [edi + ecx*4]
jmp 0x1004eaa8
inc edx
inc ecx
mov dword [edi + edx*4], ecx
cmp edx, 0x10
jl 0x1004ea87
xor esi, esi
nop
cmp esi, 0x10
jge 0x1004eae8
cmp esi, 0xffffffff
je 0x1004eade
mov cl, byte [esi + 0x100a5ce4]
cmp byte [esp + ebx + 0x50], cl
je 0x1004eade
cmp cl, 0x3f
je 0x1004eade
test esi, esi
jle 0x1004ead9
cmp byte [esi + 0x100a5ce3], 0x3f
jne 0x1004ead9
dec ebx
mov esi, dword [edi + esi*4]
jmp 0x1004eae0
inc esi
inc ebx
cmp ebx, 0x100
jl 0x1004eab0
push edi
call fcn.10063aed
add esp, 4
cmp esi, 0x10
jne 0x1004ee0b
test ebx, ebx
jl 0x1004ee0b
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x10]
lea eax, [ebx + ecx - 0x10]
cdq
push edx
push eax
lea esi, [edi + 0xb8]
call fcn.1002e8c0
add esp, 8
test eax, eax
je 0x1004ee0b
mov eax, dword [esi]
mov edx, dword [eax + 0x264]
mov dword [eax + 0x2b4], edx
mov ecx, dword [eax + 0x268]
mov dword [eax + 0x2b8], ecx
mov edx, dword [edi + 0x24]
mov eax, dword [edx]
push 0
push 8
push edi
call eax
add esp, 0xc
cmp eax, 0x10001011
jne 0x1004ee0b
mov esi, dword [esi]
mov eax, dword [esi + 0x2b8]
mov ecx, dword [edi + 0x20]
push 0x100
lea edx, [esp + 0x54]
push edx
mov edx, dword [esi + 0x2b4]
push eax
mov eax, dword [ecx + 0xc]
push edx
push edi
call eax
add esp, 0x14
cmp eax, 0x100
jne 0x1004ee0b
push 0x4c
xor ebx, ebx
call fcn.10063c44
mov edi, eax
add esp, 4
test edi, edi
je 0x1004ee0b
or ecx, 0xffffffff
xor edx, edx
mov dword [edi], ecx
lea esp, [esp]
cmp ecx, 0xffffffff
je 0x1004ebcc
mov al, byte [ecx + 0x100a5cf8]
cmp byte [edx + 0x100a5cf8], al
je 0x1004ebcc
cmp al, 0x3f
je 0x1004ebcc
mov ecx, dword [edi + ecx*4]
jmp 0x1004ebd1
inc edx
inc ecx
mov dword [edi + edx*4], ecx
cmp edx, 0x12
jl 0x1004ebb0
xor esi, esi
cmp esi, 0x12
jge 0x1004ec10
cmp esi, 0xffffffff
je 0x1004ec06
mov cl, byte [esi + 0x100a5cf8]
cmp byte [esp + ebx + 0x50], cl
je 0x1004ec06
cmp cl, 0x3f
je 0x1004ec06
test esi, esi
jle 0x1004ec01
cmp byte [esi + 0x100a5cf7], 0x3f
jne 0x1004ec01
dec ebx
mov esi, dword [edi + esi*4]
jmp 0x1004ec08
inc esi
inc ebx
cmp ebx, 0x100
jl 0x1004ebd8
push edi
call fcn.10063aed
add esp, 4
cmp esi, 0x12
jne 0x1004ee0b
test ebx, ebx
jl 0x1004ee0b
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0xb8]
mov eax, ebx
cdq
add eax, 0xfffffff5
adc edx, 0xffffffff
add dword [ecx + 0x2b4], eax
push 0
push 4
adc dword [ecx + 0x2b8], edx
mov ecx, dword [esi + 0xb8]
mov edx, dword [esi + 0x24]
mov edi, dword [ecx + 0x2b4]
mov eax, dword [edx]
push esi
add edi, 5
call eax
add esp, 0xc
cmp eax, 0x10001010
jne 0x1004ee0b
mov ecx, dword [esp + 0xc]
push ecx
lea ebx, [esp + 0x24]
mov ecx, esi
call fcn.1004e6e0
add esp, 4
mov eax, str.CopyFileA
add esi, 0xb8
call fcn.1002e830
test eax, eax
je 0x1004ee0b
mov ebx, dword [esp + 0x10]
mov edx, dword [ebx + 0x20]
push 4
lea eax, [esp + 0x44]
push eax
mov eax, dword [ebx + 0xb8]
mov ecx, dword [eax + 0x258]
mov eax, dword [eax + 0x254]
lea esi, [ebx + 0xb8]
push ecx
mov ecx, dword [edx + 0xc]
push eax
push ebx
call ecx
add esp, 0x14
cmp eax, 4
jne 0x1004ee0b
mov edx, dword [ebx + 0x20]
push eax
lea eax, [esp + 0x48]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x254]
mov eax, dword [eax + 0x258]
add ecx, 8
adc eax, 0
push eax
push ecx
mov ecx, dword [edx + 0xc]
push ebx
call ecx
add esp, 0x14
cmp eax, 4
jne 0x1004ee0b
mov eax, dword [esp + 0x44]
mov ecx, dword [ebx + 0x20]
push 1
push 7
lea edx, [esp + 0x50]
push edx
cdq
push edx
push eax
mov eax, dword [ecx + 0x10]
push ebx
call eax
add esp, 0x18
cmp eax, 7
jne 0x1004ee0b
mov ecx, dword [esp + 0x40]
mov eax, dword [esi]
mov dword [eax + 0x2b4], ecx
xor ecx, ecx
mov dword [eax + 0x2b8], ecx
mov eax, dword [esi]
add dword [eax + 0x254], 0x10
push ecx
push 1
adc dword [eax + 0x258], ecx
mov eax, dword [ebx + 0x38]
mov edx, dword [eax + 0x2c]
mov edx, dword [edx + 8]
push ecx
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x10]
push ecx
lea ecx, [esp + 0x58]
push ecx
push eax
call edx
add esp, 0x18
mov dword [esp + 0x18], eax
test eax, eax
je 0x1004ee0b
mov eax, edi
cdq
push edx
push eax
call fcn.1002e8c0
add esp, 8
test eax, eax
je 0x1004ee0b
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0x10]
mov edx, dword [eax + 0x5c]
push 4
lea ecx, [esp + 0x40]
push ecx
push 0
push 0x3c
push eax
call edx
add esp, 0x14
cmp eax, 4
jne 0x1004edfe
mov edx, dword [esp + 0x3c]
mov eax, dword [esi + 0x10]
push 2
lea ecx, [esp + 0x20]
push ecx
add edx, 0x18
push 0
push edx
push eax
mov eax, dword [eax + 0x5c]
call eax
add esp, 0x14
cmp eax, 2
jne 0x1004edfe
cmp word [esp + 0x1c], 0
jne 0x1004edfe
movzx ecx, word [esi + 0xa8]
mov esi, dword [esi + 0x10]
push eax
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x20]
push edx
add eax, 0x18
push 0
push eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x60]
push esi
call ecx
add esp, 0x14
mov dword [esp + 0x14], 0
jmp 0x1004eedc
mov edx, dword [esp + 0xc]
mov ecx, dword [edx + 0x10]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x2c]
push edx
cdq
push edx
push eax
mov eax, dword [ecx + 0x60]
push ecx
call eax
add esp, 0x14
cmp eax, dword [esp + 0x2c]
jne 0x1004eedc
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
cdq
push ecx
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [edx + 0x10]
push eax
xor cl, cl
call fcn.1002e5b0
add esp, 0x10
cmp eax, dword [esp + 0x34]
jne 0x1004eedc
mov dword [esp + 0x14], 0
jmp 0x1004eedc
cmp eax, 0xffffffff
jne 0x1004eedc
cmp dword [ebx + 0x78], 2
jne 0x1004eed4
cmp dword [ebx + 0x84], 0
je 0x1004eed4
movzx eax, word [ebx + 0x7c]
mov ebx, dword [ebx + 0x80]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 0x19c]
mov esi, dword [edx + ecx*8 + 0xc]
lea edi, [edx + ecx*8]
add esi, ebx
call fcn.1002dd20
mov dword [esp + 0x30], eax
mov ecx, dword [edi + 8]
sub ecx, ebx
push ecx
cdq
push edx
push eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x40], ecx
mov ecx, dword [eax + 0x10]
push ecx
xor cl, cl
call fcn.1002e5b0
add esp, 0x10
cmp eax, dword [esp + 0x34]
jne 0x1004eedc
mov dword [esp + 0x14], 0
jmp 0x1004eedc
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1004eeed
push eax
call fcn.10063aed
add esp, 4
mov esi, dword [esp + 0x18]
test esi, esi
je 0x1004ef54
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x1004ef54
mov eax, dword [esi + 0x10]
mov edi, dword [eax]
lea ebx, [esi + 0x10]
cmp eax, ebx
je 0x1004ef4b
lea esp, [esp]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
lea esi, [eax - 0x2c]
mov dword [edx], ecx
push esi
mov dword [eax], eax
mov dword [eax + 4], eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x1004ef3f
push esi
call fcn.10030a80
mov edx, dword [esi + 0xc]
add esp, 4
push esi
call edx
add esp, 4
mov eax, edi
mov edi, dword [edi]
cmp eax, ebx
jne 0x1004ef10
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0xc]
push esi
call eax
add esp, 4
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0x34]
lea ecx, [eax + 0xe8]
mov eax, dword [ecx]
mov esi, dword [eax]
cmp eax, ecx
je 0x1004ef95
lea esp, [esp]
mov ecx, dword [eax - 0xd0]
mov edx, dword [ecx + 0xc]
add eax, 0xffffff08
push eax
call edx
mov ecx, dword [ebx + 0x34]
mov eax, esi
mov esi, dword [esi]
add ecx, 0xe8
add esp, 4
cmp eax, ecx
jne 0x1004ef70
mov edx, dword [ebx + 0x28]
mov eax, dword [edx + 0xc]
push ebx
call eax
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x1004effb
mov eax, dword [ebx + 0x10]
mov edi, dword [eax]
lea ecx, [ebx + 0x10]
cmp eax, ecx
je 0x1004eff2
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
lea esi, [eax - 0x2c]
mov dword [edx], ecx
push esi
mov dword [eax], eax
mov dword [eax + 4], eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x1004efe7
push esi
call fcn.10030a80
mov ecx, dword [esi + 0xc]
add esp, 4
push esi
call ecx
add esp, 4
mov eax, edi
mov edi, dword [edi]
lea ecx, [ebx + 0x10]
cmp eax, ecx
jne 0x1004efb8
mov edx, dword [ebx + 0xc]
push ebx
call edx
add esp, 4
mov ecx, dword [esp + 0x154]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10063ade
mov esp, ebp
pop ebp
ret