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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x10084c36
mov eax, dword fs:[0]
push eax
sub esp, 0x4fc
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x4f4], eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x508]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x3ff
push eax
mov dword [esp + 0x20], eax
mov byte [esp + 0x104], al
lea eax, [esp + 0x105]
push eax
mov dword [esp + 0x30], edi
call fcn.1006df00
mov eax, dword [edi]
add esp, 0xc
cmp eax, dword [edi + 4]
jne 0x10040a52
push 0x1f
push str.DLL_path_list_must_not_be_empty
lea ecx, [esp + 0x94]
mov dword [esp + 0xa8], 0xf
mov dword [esp + 0xa4], 0
mov byte [esp + 0x94], 0
call fcn.10041c00
mov dword [esp + 0x510], 0
lea eax, [esp + 0x8c]
cmp dword [esp + 0xa0], 0x10
lea ecx, [esp + 0x38]
cmovae eax, dword [esp + 0x8c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
call fcn.1006cb0e
push 0x100ac184
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], vtable.IATModifierException.0
push eax
call fcn.10070600
mov eax, dword [esi + 0x140]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x10040ad7
push 0x22
push str.Import_descriptor_must_not_be_NULL
lea ecx, [esp + 0x94]
mov dword [esp + 0xa8], 0xf
mov dword [esp + 0xa4], eax
mov byte [esp + 0x94], al
call fcn.10041c00
mov dword [esp + 0x510], 1
lea eax, [esp + 0x8c]
cmp dword [esp + 0xa0], 0x10
lea ecx, [esp + 0x38]
cmovae eax, dword [esp + 0x8c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
call fcn.1006cb0e
push 0x100ac184
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], vtable.IATModifierException.0
push eax
call fcn.10070600
xor ecx, ecx
or edi, 0xffffffff
mov dword [esp + 0x20], ecx
push 0x14
lea ecx, [esp + 0x68]
mov dword [esp + 0x78], 0
push ecx
mov ecx, dword [esi]
xorps xmm0, xmm0
push eax
movdqa xmmword [esp + 0x70], xmm0
call fcn.100421e0
cmp dword [esp + 0x74], 0
jne 0x10040b12
cmp dword [esp + 0x64], 0
je 0x10040bfb
mov ecx, dword [esi]
lea edx, [esp + 0xfc]
push 0x3ff
push edx
mov eax, dword [ecx]
add eax, dword [esp + 0x78]
push eax
call fcn.100421e0
lea eax, [esp + 0xfc]
mov byte [esp + 0x4fb], 0
push str.mscoree.dll
push eax
call fcn.1006d3cf
add esp, 8
test eax, eax
jne 0x10040be7
mov dword [esp + 0x18], 1
call fcn.1003a380
test eax, eax
jne 0x10040be7
lea edx, [eax + 0x13]
lea ecx, [esp + 0x2c]
call fcn.1003e400
push str.__b_
mov edx, eax
mov dword [esp + 0x514], 2
lea ecx, [esp + 0x14]
call fcn.10022e60
add esp, 4
push 0
push str.Warning
push dword [eax]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [esp + 0x10]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10040bbf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x510], 0xffffffff
mov ecx, edi
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10040be7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x1c]
inc dword [esp + 0x20]
add eax, 0x14
mov dword [esp + 0x1c], eax
jmp 0x10040ae0
mov ecx, dword [esp + 0x20]
cmp ecx, 3
jge 0x10040c53
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x10040c53
push ecx
mov eax, esp
push ecx
push str.Only__d_imported_DLLs._No_need_for_early_injection.
push eax
call fcn.1003a800
add esp, 0xc
call fcn.10021810
add esp, 4
mov dword [esp + 0x14], str.Too_few_imports._No_need_for_early_injection.
lea eax, [esp + 0x14]
lea ecx, [esp + 0x38]
push eax
call fcn.1006cb0e
push 0x100ac114
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], vtable.std::runtime_error.0
push eax
call fcn.10070600
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, 0x2aaaaaab
sub ecx, edx
mov dword [esp + 0x10], edx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x1c], eax
lea edx, [eax + eax*4]
shl edx, 2
test eax, eax
je 0x10040ca3
xor ecx, ecx
mov esi, eax
mov eax, dword [esp + 0x10]
lea ecx, [ecx + 0x18]
mov eax, dword [ecx + eax - 8]
add eax, 4
and eax, 0xfffffffc
add edx, eax
dec esi
jne 0x10040c85
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push dword [esi + 0x140]
shl eax, 4
mov ecx, esi
add edx, eax
mov dword [esp + 0x14], edx
call fcn.100418a0
mov dword [esp + 0x2c], eax
add eax, dword [esp + 0x10]
push 1
push eax
mov dword [esp + 0x24], eax
call fcn.1006cc3b
mov ecx, dword [esi]
add esp, 8
mov dword [esp + 0x34], eax
mov eax, dword [ecx]
mov ecx, esi
push dword [esp + 0x1c]
mov dword [esp + 0x34], eax
push eax
call fcn.10041740
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esp + 0x24]
lea eax, [ecx + ecx*4]
mov ecx, dword [esp + 0x34]
shl eax, 2
sub eax, dword [esp + 0x30]
add eax, dword [esp + 0x28]
add eax, dword [esp + 0x2c]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
call fcn.100408c0
push dword [esp + 0x2c]
mov eax, dword [esi]
push dword [esi + 0x140]
push dword [eax]
lea eax, [esp + 0x24]
push str.pImageBaseAddress___.8lx__pImageImportDescriptor___.8lx__origIIDTblSize___d
push eax
call fcn.1003a800
add esp, 0x14
mov dword [esp + 0x510], 3
mov edx, dword [esp + 0x18]
call fcn.100394f0
mov dword [esp + 0x510], 0xffffffff
mov ecx, edi
mov edx, dword [esp + 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10040d8c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x18]
push 0x10097218
push eax
call fcn.1003a800
add esp, 8
mov dword [esp + 0x510], 4
mov edx, dword [esp + 0x18]
call fcn.100394f0
mov dword [esp + 0x510], 0xffffffff
mov ecx, edi
mov edx, dword [esp + 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10040dda
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
push str.Copying_old_table_to_new_location:__.8lx
push eax
call fcn.1003a800
add esp, 0xc
mov dword [esp + 0x510], 5
mov edx, dword [esp + 0x18]
call fcn.100394f0
mov dword [esp + 0x510], 0xffffffff
mov ecx, edi
mov edx, dword [esp + 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10040e2c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x10097314
lea ecx, [esp + 0x1c]
call fcn.10022bb0
mov dword [esp + 0x510], 6
mov edx, dword [esp + 0x18]
call fcn.100394f0
mov dword [esp + 0x510], 0xffffffff
mov ecx, edi
mov edx, dword [esp + 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10040e76
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi + 0x140]
mov edi, dword [esp + 0x10]
push 0x14
xorps xmm0, xmm0
mov dword [esp + 0x1c], edi
movdqu xmmword [edi], xmm0
push edi
mov dword [edi + 0x10], 0
mov ecx, dword [esi]
push eax
mov dword [esp + 0x2c], eax
call fcn.100421e0
cmp dword [edi + 0x10], 0
jne 0x10040eb0
cmp dword [edi], 0
je 0x10040f4a
mov ecx, dword [esi]
lea eax, [esp + 0xfc]
mov edi, dword [edi + 0xc]
push 0x3ff
push eax
add edi, dword [ecx]
push edi
call fcn.100421e0
mov eax, dword [esp + 0x18]
mov byte [esp + 0x4fb], 0
push dword [eax]
push dword [eax + 0x10]
lea eax, [esp + 0x104]
push dword [esp + 0x28]
push eax
push edi
lea eax, [esp + 0x24]
push str._.8lx_hs_old_entry:___.8lx__FirstThunk_.8lx__OriginalFirstThunk_.8lx_
push eax
call fcn.1003a800
add esp, 0x1c
mov dword [esp + 0x510], 7
mov edx, dword [esp + 0x10]
call fcn.100394f0
mov dword [esp + 0x510], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10040f37
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
add eax, 0x14
add edi, 0x14
jmp 0x10040e80
lea eax, [esp + 0x10]
push 0x10097314
push eax
call fcn.1003a800
add esp, 8
mov dword [esp + 0x510], 8
mov edx, dword [esp + 0x10]
call fcn.100394f0
mov dword [esp + 0x510], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10040f99
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esp + 0x34]
lea eax, [ecx + ecx*4]
lea edi, [edx + eax*4]
xor edx, edx
add edi, dword [esp + 0x2c]
mov dword [esp + 0x18], edx
test ecx, ecx
je 0x100410d1
xor eax, eax
or esi, 0xffffffff
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x24]
mov ecx, dword [edx]
add ecx, eax
cmp dword [ecx + 0x14], 0x10
jb 0x10040fe8
mov ecx, dword [ecx]
mov eax, edi
sub eax, dword [esp + 0x34]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x18]
push ecx
push str.Prepending_my_DLL:__hs__origIIDTblSize_d__new_dllName_rel_addr0x_x_
push eax
call fcn.1003a800
add esp, 0x14
mov dword [esp + 0x510], 9
mov edx, dword [esp + 0x10]
call fcn.100394f0
mov dword [esp + 0x510], 0xffffffff
mov ecx, esi
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10041042
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [edi], SysReAllocStringLen
mov dword [edi + 4], 0
mov dword [edi + 8], SysReAllocStringLen
mov dword [edi + 0xc], 0
add edi, 0x10
mov eax, dword [eax]
add ecx, eax
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
jb 0x10041077
mov ecx, dword [ecx]
inc eax
push eax
push ecx
push edi
call fcn.1006f6d0
mov eax, dword [esp + 0x30]
add esp, 0xc
mov ecx, dword [esp + 0x20]
inc dword [esp + 0x18]
mov edx, dword [eax]
mov eax, dword [ecx + edx + 0x10]
add ecx, 0x18
add eax, 4
mov dword [esp + 0x20], ecx
shr eax, 2
lea edi, [edi + eax*4]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 4]
mov eax, 0x2aaaaaab
sub ecx, edx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
jb 0x10040fd8
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x11c], 0
jne 0x10041148
movzx ecx, word [esi + 0x58]
xor eax, eax
add ecx, 0x18
xor edi, edi
add ecx, dword [esi + 0x13c]
mov dword [esp + 0x14], ecx
cmp ax, word [esi + 0x4a]
jae 0x10041148
push 0x28
lea eax, [esp + 0x90]
push eax
push ecx
mov ecx, dword [esi]
call fcn.100421e0
mov ecx, dword [esp + 0x98]
cmp dword [esi + 0xc4], ecx
jb 0x10041134
mov edx, dword [esp + 0x9c]
lea eax, [edx + ecx]
cmp dword [esi + 0xc4], eax
jae 0x10041134
mov dword [esi + 0x11c], ecx
mov dword [esi + 0x120], edx
mov ecx, dword [esp + 0x14]
inc edi
movzx eax, word [esi + 0x4a]
add ecx, 0x28
mov dword [esp + 0x14], ecx
cmp edi, eax
jl 0x100410f5
mov eax, dword [esi]
lea ecx, [esp + 0x14]
mov edi, dword [esp + 0x28]
push ecx
push dword [esp + 0x20]
mov dword [esp + 0x1c], 0
push dword [esp + 0x3c]
push edi
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x14], ecx
je 0x100411f7
push 0x14
push str.Write_memory_failed_
lea ecx, [esp + 0x94]
mov dword [esp + 0xa8], 0xf
mov dword [esp + 0xa4], 0
mov byte [esp + 0x94], 0
call fcn.10041c00
mov dword [esp + 0x510], 0xa
lea eax, [esp + 0x8c]
cmp dword [esp + 0xa0], 0x10
lea ecx, [esp + 0x38]
cmovae eax, dword [esp + 0x8c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
call fcn.1006cb0e
push 0x100ac228
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], vtable.MemoryAccessException.0
push eax
call fcn.10070600
push dword [esp + 0x34]
mov eax, edi
mov dword [esi + 0xc8], ecx
sub eax, dword [esp + 0x34]
mov dword [esi + 0xc4], eax
call fcn.1006ac0c
mov eax, dword [esi + 0x114]
add esp, 4
cmp eax, 0xffffffff
je 0x10041238
test eax, eax
je 0x10041238
mov dword [esi + 0x114], 0
mov dword [esi + 0x118], 0
mov eax, dword [esi + 0x12c]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1004135d
add eax, dword [esp + 0x30]
lea ecx, [esp + 0xb4]
push 0x48
push ecx
mov ecx, dword [esi]
push eax
call fcn.100421e0
mov eax, dword [esp + 0xc4]
test al, 1
je 0x1004135d
mov ecx, dword [esi]
and eax, 0xfffffffe
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0x1c]
add eax, dword [esp + 0x30]
push 0x40
push 0x48
push eax
call fcn.100423a0
mov ecx, dword [esi]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
push 0x48
lea eax, [esp + 0xbc]
mov dword [esp + 0x1c], 0
push eax
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x3c]
push eax
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp dword [esp + 0x14], 0x48
mov edi, dword [esp + 0x28]
je 0x10041347
push 0x14
push str.Write_memory_failed_
lea ecx, [esp + 0x94]
mov dword [esp + 0xa8], 0xf
mov dword [esp + 0xa4], 0
mov byte [esp + 0x94], 0
call fcn.10041c00
mov dword [esp + 0x510], 0xb
lea eax, [esp + 0x8c]
cmp dword [esp + 0xa0], 0x10
lea ecx, [esp + 0x38]
cmovae eax, dword [esp + 0x8c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
call fcn.1006cb0e
push 0x100ac228
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], vtable.MemoryAccessException.0
push eax
call fcn.10070600
push dword [esp + 0x10]
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x34]
mov ecx, dword [esi]
push 0x48
push eax
call fcn.100423a0
mov ecx, dword [esi]
push 0x40
push 0xf8
push dword [esi + 0x13c]
call fcn.100423a0
mov edx, dword [esi]
lea ecx, [esi + 0x44]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
push 0xf8
push ecx
push dword [esi + 0x13c]
mov dword [esi + 0x9c], 0
push dword [edx + 4]
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp dword [esp + 0x14], 0xf8
je 0x10041430
push 0x14
push str.Write_memory_failed_
lea ecx, [esp + 0x94]
mov dword [esp + 0xa8], 0xf
mov dword [esp + 0xa4], 0
mov byte [esp + 0x94], 0
call fcn.10041c00
mov dword [esp + 0x510], 0xc
lea eax, [esp + 0x8c]
cmp dword [esp + 0xa0], 0x10
lea ecx, [esp + 0x38]
cmovae eax, dword [esp + 0x8c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
call fcn.1006cb0e
push 0x100ac228
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], vtable.MemoryAccessException.0
push eax
call fcn.10070600
push dword [esp + 0x10]
mov ecx, dword [esi]
push 0xf8
push dword [esi + 0x13c]
call fcn.100423a0
push edi
lea eax, [esp + 0x18]
push str.New_table_DUMP__0x_.8lx_:
push eax
call fcn.1003a800
add esp, 0xc
mov dword [esp + 0x510], 0xd
mov edx, dword [esp + 0x14]
call fcn.100394f0
mov dword [esp + 0x510], 0xffffffff
or edi, 0xffffffff
mov edx, dword [esp + 0x14]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10041498
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x100974a8
lea ecx, [esp + 0x18]
call fcn.10022bb0
mov dword [esp + 0x510], 0xe
mov edx, dword [esp + 0x14]
call fcn.100394f0
mov dword [esp + 0x510], 0xffffffff
mov ecx, edi
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100414e2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
lea eax, [esp + 0x44]
push 0x14
push eax
push dword [esp + 0x30]
xorps xmm0, xmm0
mov dword [esp + 0x60], 0
movdqa xmmword [esp + 0x50], xmm0
call fcn.100421e0
mov edx, dword [esp + 0x50]
test edx, edx
je 0x100416b0
mov ecx, dword [esi]
push 0x3ff
mov eax, dword [ecx]
add eax, edx
lea edx, [esp + 0x100]
push edx
push eax
call fcn.100421e0
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x54]
mov byte [esp + 0x4fb], 0
test eax, eax
jne 0x10041548
test edx, edx
je 0x10041679
test eax, eax
mov ecx, dword [esi]
cmovne edx, eax
push 4
mov eax, dword [ecx]
add eax, edx
mov dword [esp + 0x20], 0
lea edx, [esp + 0x20]
push edx
push eax
call fcn.100421e0
mov eax, dword [esp + 0x1c]
test eax, eax
js 0x10041617
push 0x84
call fcn.1006bba0
add esp, 4
mov dword [esp + 0x18], eax
push 0x80
push 0
push eax
call fcn.1006df00
mov ecx, dword [esi]
add esp, 0xc
mov edx, dword [ecx]
add edx, dword [esp + 0x1c]
push 0x7f
push dword [esp + 0x1c]
push edx
call fcn.100421e0
mov eax, dword [esp + 0x18]
add eax, 2
push eax
push dword [esp + 0x54]
lea eax, [esp + 0x104]
push eax
lea eax, [esp + 0x20]
push str._hs__dllName_rel_addr0x_x_:_first_import_hs
push eax
call fcn.1003a800
add esp, 0x14
mov dword [esp + 0x510], 0xf
mov edx, dword [esp + 0x14]
call fcn.100394f0
mov dword [esp + 0x510], 0xffffffff
mov ecx, edi
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10041609
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esp + 0x18]
call fcn.1006ac0c
add esp, 4
jmp 0x10041679
push 0
and eax, 0x7fffffff
push eax
push dword [esp + 0x58]
lea eax, [esp + 0x108]
push eax
lea eax, [esp + 0x20]
push str._hs__dllName_relative_addr0x_x_:_first_importordinal__d
push eax
call fcn.1003a800
add esp, 0x18
mov dword [esp + 0x510], 0x10
mov edx, dword [esp + 0x10]
call fcn.100394f0
mov dword [esp + 0x510], 0xffffffff
mov ecx, edi
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10041679
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x44]
push 0x14
add eax, 0x14
mov dword [esp + 0x58], 0
push ecx
mov ecx, dword [esi]
xorps xmm0, xmm0
push eax
mov dword [esp + 0x34], eax
movdqa xmmword [esp + 0x50], xmm0
call fcn.100421e0
mov edx, dword [esp + 0x50]
test edx, edx
jne 0x10041511
push 0x10097314
lea ecx, [esp + 0x24]
call fcn.10022bb0
mov dword [esp + 0x510], 0x11
mov edx, dword [esp + 0x20]
call fcn.100394f0
mov dword [esp + 0x510], 0xffffffff
mov edx, dword [esp + 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x100416f8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x508]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x4f4]
xor ecx, esp
call fcn.1006abfd
mov esp, ebp
pop ebp
ret 4