Function at 0x406e10
Capabilities:
Copy file
Get common file path
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4248d7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbdc
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.0041df45
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax - 0xc]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0xbf4], 0
je 0x406ee4
push str.license.txt
lea ecx, [ebp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.004053f0
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xbf8], 1
call fcn.004016b0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0xbf4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406eb9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call esi
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ecx - 0xc]
push 0
lea ebx, [esp + 0x60]
push ebx
push edx
push ecx
push eax
call edi
mov ecx, dword [ebp + 0x30]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x406f67
push str.info.txt
lea edx, [ebp + 0x14]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.004053f0
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xbf8], 2
call fcn.004016b0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0xbf4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406f3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call esi
mov ecx, dword [ebp + 0x30]
mov edx, dword [ecx - 0xc]
push 0
lea esi, [esp + 0x60]
push esi
push edx
push ecx
push eax
call edi
mov ecx, dword [ebp + 0x18]
mov eax, 1
cmp ecx, eax
mov dword [esp + 0x1c], eax
jl 0x407b22
mov edx, dword [ebp]
mov ebx, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x278]
push ecx
push eax
push edx
call fcn.0040a110
lea eax, [esp + 0x288]
push 0x3e
push eax
call fcn.0040fa00
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4071d4
lea ecx, [esi + 1]
push ecx
lea ecx, [esp + 0x18]
call fcn.00402560
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
test eax, eax
mov byte [esp + 0xbf4], 3
jl 0x407129
push str._SYSTEM32_
push ecx
call fcn.0040f698
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x407030
sub eax, ecx
cmp eax, 0xffffffff
je 0x407030
mov byte [esp + 0x8d0], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x8d1]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea edx, [esp + 0x8d4]
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x8d0]
push eax
push str._SYSTEM32_
jmp 0x407120
mov eax, dword [ecx - 0xc]
test eax, eax
jl 0x407129
push str._WINDOWS_
push ecx
call fcn.0040f698
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x407094
sub eax, ecx
cmp eax, 0xffffffff
je 0x407094
mov byte [esp + 0x9d8], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x9d9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea ecx, [esp + 0x9dc]
push ecx
stosb byte es:[edi], al
call ebx
lea edx, [esp + 0x9d8]
push edx
push str._WINDOWS_
jmp 0x407120
mov eax, dword [ecx - 0xc]
test eax, eax
jl 0x407129
push str._FONT_
push ecx
call fcn.0040f698
add esp, 8
test eax, eax
je 0x407129
sub eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x407129
xor eax, eax
mov byte [esp + 0x6c0], 0
mov ecx, 0x40
lea edi, [esp + 0x6c1]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0x6c4]
push eax
call ebx
lea edi, [esp + 0x6c0]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4070f0
mov ecx, dword [str.Fonts]
mov dx, word [0x42692c]
mov al, byte [0x42692e]
mov dword [edi], ecx
lea ecx, [esp + 0x6c0]
mov word [edi + 4], dx
push ecx
mov byte [edi + 6], al
push str._FONT_
lea ecx, [esp + 0x1c]
call fcn.004060a0
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
call fcn.004016b0
push 1
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x18]
call fcn.004062a0
mov eax, dword [eax]
push 0x426504
push eax
call fcn.0040f74a
add esp, 8
test eax, eax
mov eax, dword [esp + 0x60]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40717a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x40718e
push 1
push 0x426504
lea ecx, [esp + 0x18]
call fcn.00403f50
lea eax, [esp + 0x27c]
mov byte [esi], 0
lea edx, [eax + 1]
jmp 0x4071a0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4071a0
sub eax, edx
push eax
lea eax, [esp + 0x280]
push eax
lea ecx, [esp + 0x18]
call fcn.00403f50
push 0x426504
push 0x426924
lea ecx, [esp + 0x18]
call fcn.004060a0
mov eax, dword [esp + 0x14]
jmp 0x407241
push 0x426504
lea eax, [ebp + 0x14]
push eax
lea ecx, [esp + 0x6c]
push ecx
call fcn.004053f0
lea edx, [esp + 0x288]
push edx
push eax
lea eax, [esp + 0x6c]
push eax
mov byte [esp + 0xc0c], 4
call fcn.004053f0
add esp, 0x18
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xbf8], 5
call fcn.004016b0
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
mov byte [esp + 0xbf4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40723d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
mov byte [esp + 0xbf4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407263
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebx, dword [esp + 0x10]
push ebx
lea eax, [esp + 0x4b4]
push 0x4266b8
push eax
call fcn.0040f926
lea ecx, [esp + 0x17c]
push ecx
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x5cc]
push eax
lea ecx, [esp + 0xaf8]
push ecx
lea edx, [esp + 0x4cc]
push edx
call fcn.0040f7de
add esp, 0x20
call fcn.0041df45
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
lea eax, [esp + 0x5b8]
push eax
lea ecx, [esp + 0xae4]
push ecx
lea edx, [esp + 0x2c]
push str._s_s
push edx
mov byte [esp + 0xc04], 6
call fcn.00402050
lea eax, [esp + 0x34]
push 0
push eax
call fcn.00405300
lea ecx, [esp + 0x188]
push str..ttf
push ecx
call fcn.0040f97e
add esp, 0x20
test eax, eax
jne 0x4073bb
mov byte [esp + 0x3a8], al
mov ecx, 0x40
lea edi, [esp + 0x3a9]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x3a8]
stosw word es:[edi], ax
push edx
push 0x104
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [ebp]
lea eax, [esp + 0x3a8]
push eax
push ecx
call fcn.0040a150
mov eax, dword [esp + 0x280]
mov ecx, dword [ebp]
lea edx, [esp + 0x284]
push edx
push eax
push ecx
call fcn.0040c430
lea edx, [esp + 0x7c]
push edx
call fcn.00405cf0
lea eax, [esp + 0x188]
push eax
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x3c8]
push edx
mov eax, edx
push str._s_s_s
push eax
call fcn.0040f926
add esp, 0x2c
push 0
lea ecx, [esp + 0x4b4]
push ecx
lea edx, [esp + 0x3b0]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [esp + 0x68]
push eax
call fcn.00406900
add esp, 4
jmp 0x40746a
lea ecx, [esp + 0x170]
push str..tte
push ecx
call fcn.0040f97e
add esp, 8
test eax, eax
jne 0x407440
mov byte [esp + 0x7c8], al
mov ecx, 0x40
lea edi, [esp + 0x7c9]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x7c8]
stosw word es:[edi], ax
push edx
push 0x104
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [ebp]
lea eax, [esp + 0x7c8]
push eax
push ecx
call fcn.0040a150
mov eax, dword [esp + 0x280]
mov ecx, dword [ebp]
lea edx, [esp + 0x284]
push edx
push eax
push ecx
call fcn.0040c430
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x7e0]
push eax
call fcn.00406ad0
add esp, 0x1c
jmp 0x40746a
mov ecx, dword [esp + 0x24]
mov edx, dword [ebp]
push ecx
push edx
call fcn.0040a150
mov ecx, dword [esp + 0x280]
mov edx, dword [ebp]
lea eax, [esp + 0x284]
push eax
push ecx
push edx
call fcn.0040c430
add esp, 0x14
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.0041df45
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x28], eax
lea eax, [esp + 0x170]
push eax
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x30]
push str._s_s
push edx
mov byte [esp + 0xc04], 7
call fcn.00402050
mov edi, dword [esp + 0x38]
mov eax, dword [ebp + 0x20]
push edi
push eax
call fcn.0040f54d
add esp, 0x18
test eax, eax
jne 0x407700
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x4075e1
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x3c]
call fcn.00402560
lea ecx, [esp + 0x5b8]
push ecx
lea ecx, [esp + 0x54]
mov byte [esp + 0xbf8], 8
call fcn.00402560
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x58]
mov byte [esp + 0xbf8], 9
call fcn.00402560
lea eax, [esp + 0x4b0]
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0xbf8], 0xa
call fcn.00402560
push 0
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x5c]
push ecx
mov byte [esp + 0xc08], 0xb
call fcn.004055a0
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
add esp, 0x14
mov byte [esp + 0xbf4], 0xa
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40756f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
mov byte [esp + 0xbf4], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407595
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
mov byte [esp + 0xbf4], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4075bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0xbf4], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4075e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp + 0x3c]
test eax, eax
je 0x407700
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x38]
call fcn.00402560
lea ecx, [esp + 0x5b8]
push ecx
lea ecx, [esp + 0x34]
mov byte [esp + 0xbf8], 0xc
call fcn.00402560
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x44]
mov byte [esp + 0xbf8], 0xd
call fcn.00402560
lea eax, [esp + 0x4b0]
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0xbf8], 0xe
call fcn.00402560
push 7
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x58]
push ecx
mov byte [esp + 0xc08], 0xf
call fcn.004055a0
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
add esp, 0x14
mov byte [esp + 0xbf4], 0xe
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40768e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0xbf4], 0xd
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4076b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0xbf4], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4076da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0xbf4], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407700
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push str.MenkUpdate.exe
push edi
call fcn.0040f97e
add esp, 8
test eax, eax
je 0x40772b
lea eax, [esp + 0x170]
push str..exe
push eax
call fcn.0040f97e
add esp, 8
test eax, eax
je 0x407761
lea ecx, [esp + 0x170]
push str..doc
push ecx
call fcn.0040f97e
add esp, 8
test eax, eax
je 0x407761
lea edx, [esp + 0x170]
push str..pdf
push edx
call fcn.0040f97e
add esp, 8
test eax, eax
jne 0x4078bd
mov eax, dword [ebp + 0x40]
test eax, eax
je 0x4078bd
call fcn.0041df45
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
lea eax, [esp + 0x68]
push str.MenkMongFree
push eax
mov byte [esp + 0xbfc], 0x10
call fcn.0040f97e
mov ecx, dword [ebp + 0x1c]
add esp, 8
test eax, eax
lea edx, [esp + 0x20]
jne 0x4077ab
push 0x4268c4
jmp 0x4077b0
lea eax, [esp + 0x68]
push eax
push ecx
push 0x4268bc
push edx
call fcn.00402050
add esp, 0x10
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x30]
call fcn.00402560
lea ecx, [esp + 0x5b8]
push ecx
lea ecx, [esp + 0x48]
mov byte [esp + 0xbf8], 0x11
call fcn.00402560
lea edx, [esp + 0x4b0]
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0xbf8], 0x12
call fcn.00402560
push 2
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0xc08], 0x13
call fcn.004055a0
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
add esp, 0x14
mov byte [esp + 0xbf4], 0x12
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40784b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov byte [esp + 0xbf4], 0x11
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407871
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0xbf4], 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407897
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0xbf4], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4078bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [esp + 0x170]
push str..dll
push eax
call fcn.0040f97e
add esp, 8
test eax, eax
je 0x407a53
lea ecx, [esp + 0x170]
push str..ocx
push ecx
call fcn.0040f97e
add esp, 8
test eax, eax
je 0x407a53
lea edx, [esp + 0x170]
push str..ime
push edx
call fcn.0040f97e
add esp, 8
test eax, eax
jne 0x407ac6
call fcn.0041df45
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0x68]
push str.MenkIPA10
push eax
mov byte [esp + 0xbfc], 0x14
call fcn.0040f97e
add esp, 8
test eax, eax
jne 0x407960
push 0x14
push 0x426880
lea ecx, [esp + 0x20]
call fcn.004015e0
jmp 0x407a24
lea ecx, [esp + 0x68]
push str.MenkMongFree
push ecx
call fcn.0040f97e
add esp, 8
test eax, eax
jne 0x407989
push str.Menksoft_Traditional_Mongolian_IME_Trial_Version
lea ecx, [esp + 0x1c]
call fcn.00401960
jmp 0x407a24
lea edx, [esp + 0x68]
push str.MenkMong
push edx
call fcn.0040f97e
add esp, 8
test eax, eax
jne 0x4079af
push str.Menksoft_Traditional_Mongolian_IME
lea ecx, [esp + 0x1c]
call fcn.00401960
jmp 0x407a24
lea eax, [esp + 0x68]
push str.MenkZcsrf
push eax
call fcn.0040f97e
add esp, 8
test eax, eax
jne 0x4079d5
push str.Menksoft_Whole_Word_IME
lea ecx, [esp + 0x1c]
call fcn.00401960
jmp 0x407a24
lea ecx, [esp + 0x68]
push str.MenkKhitan
push ecx
call fcn.0040f97e
add esp, 8
test eax, eax
lea ecx, [esp + 0x18]
jne 0x4079fb
push str.Menksoft_khitan_IME
call fcn.00401960
jmp 0x407a24
lea edx, [esp + 0x68]
push edx
call fcn.00401960
lea eax, [esp + 0x170]
push eax
lea ecx, [esp + 0x1c]
call fcn.00406620
push 0
push 0
push str.Unwrap.cpp
call fcn.0042123c
mov esi, dword [esp + 0x18]
push esi
push ebx
call sub.IMM32.dll_ImmInstallIMEA
lea eax, [esi - 0x10]
mov byte [esp + 0xbf4], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407ac6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x407ac6
mov esi, dword [esp + 0x10]
push ecx
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
add esi, 0xfffffff0
mov dword [esp + 0x1c], esp
mov ebx, esp
call dword [eax + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x407a84
cmp eax, dword [esi]
jne 0x407a84
mov eax, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x407ab6
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x407b61
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, 0x10
mov ecx, ebp
mov dword [ebx], eax
call fcn.00406540
mov edi, dword [esp + 0x28]
lea eax, [edi - 0x10]
mov byte [esp + 0xbf4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407ae8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0xbf4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407b0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jle 0x406f7b
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0xbf4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407b4b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0xbec]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
jmp fcn.00401260