Function at 0x4a8670
Capabilities:
Contain obfuscated stackstrings
Get common file path
Get file size
Write file on windows

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
lea edi, [ecx + eax]
push esi
push ebx
sub esp, 0xc30
mov dword [ebp - 0xbf8], eax
mov dword [ebp - 0xc1c], edx
mov dword [ebp - 0xbdc], edi
test ecx, ecx
je 0x4a9ac0
sub edi, 1
mov dword [ebp - 0xbe0], edi
cmp edx, eax
jae 0x4a9ce8
cmp dword [0x57fce8], 1
jg 0x4a9b7d
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc14], eax
mov dword [ebp - 0xc20], eax
mov dword [ebp - 0xc04], 0
mov eax, dword [ebp - 0xc14]
mov dword [ebp - 0xbd8], 0
mov byte [ebp - 0xbe4], 0
mov dword [ebp - 0xbd0], eax
lea eax, [ebp - 0xbc8]
mov dword [ebp - 0xc08], eax
mov dword [ebp - 0xbd4], 0
mov ebx, dword [0x79ea48]
mov ecx, 0x17
lea edi, [ebp - 0xb8c]
mov dword [ebp - 0xba4], 0x7865742e
mov dword [ebp - 0xba0], 0x74
lea esi, [ebx + ebx]
mov dword [ebp - 0xb9c], ebx
lea edx, [ebx + esi]
mov dword [ebp - 0xbf4], esi
lea eax, [ebx + edx]
mov dword [ebp - 0xc00], edx
mov dword [ebp - 0xbfc], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, 0xea
lea edi, [ebp - 0x7c8]
mov dword [ebp - 0xb48], edx
rep stosd dword es:[edi], eax
lea eax, [esi + 0x7c]
lea ecx, [esi + 0x28]
mov dword [ebp - 0xb40], edx
mov dword [ebp - 0x7bc], eax
lea eax, [esi + 0x30]
mov edi, 1
mov dword [ebp - 0xb70], esi
mov dword [ebp - 0xb68], esi
mov dword [ebp - 0xb98], ebx
mov dword [ebp - 0xb94], ebx
mov dword [ebp - 0xb90], ebx
mov dword [ebp - 0xb80], 0x60000020
mov dword [ebp - 0xb7c], 0x6164652e
mov dword [ebp - 0xb78], 0x6174
mov dword [ebp - 0xb74], ebx
mov dword [ebp - 0xb6c], ebx
mov dword [ebp - 0xb58], 0x40000040
mov dword [ebp - 0xb54], 0x6164692e
mov dword [ebp - 0xb50], 0x6174
mov dword [ebp - 0xb4c], ebx
mov dword [ebp - 0xb44], ebx
mov dword [ebp - 0xb30], 0xc0000040
mov dword [ebp - 0x7c4], 0x12345678
mov dword [ebp - 0x7b8], 1
mov dword [ebp - 0x7b4], 2
mov dword [ebp - 0x7b0], 2
mov dword [ebp - 0xc0c], ecx
mov dword [ebp - 0x7a8], eax
lea eax, [esi + 0x38]
mov dword [ebp - 0x7a4], eax
lea eax, [ebx + 4]
mov dword [ebp - 0x7a0], eax
lea eax, [ebx + 8]
mov dword [ebp - 0x79c], eax
lea eax, [esi + 0x3c]
mov dword [ebp - 0x798], eax
lea eax, [esi + 0x5c]
mov dword [ebp - 0x7ac], ecx
mov ecx, 0x5a
mov dword [ebp - 0x794], eax
xor eax, eax
mov word [ebp - 0x78e], di
lea edi, [ebp - 0x930]
rep stosd dword es:[edi], eax
lea eax, [edx + 0x28]
mov dword [ebp - 0x78c], 0x77726f66
mov dword [ebp - 0x930], eax
lea eax, [edx + 0x62]
mov dword [ebp - 0x924], eax
lea eax, [edx + 0x34]
mov dword [ebp - 0xc10], eax
mov dword [ebp - 0x920], eax
lea eax, [edx + 0x40]
mov dword [ebp - 0x908], eax
mov dword [ebp - 0x788], 0x5f647261
mov dword [ebp - 0x784], 0x74736574
mov dword [ebp - 0x780], 0x6e75665f
mov dword [ebp - 0x77c], 0x63
mov dword [ebp - 0x778], 0
mov dword [ebp - 0x774], 0
mov dword [ebp - 0x770], 0
mov dword [ebp - 0x76c], 0x77726f66
mov dword [ebp - 0x768], 0x5f647261
mov dword [ebp - 0x764], 0x74736574
mov dword [ebp - 0x760], 0x6e75665f
mov dword [ebp - 0x75c], 0x3263
mov dword [ebp - 0x758], 0
mov dword [ebp - 0x754], 0
mov dword [ebp - 0x750], 0
mov dword [ebp - 0x928], 0xffffffff
mov dword [ebp - 0x904], 0x80000002
mov dword [ebp - 0x8fc], eax
lea eax, [ebp - 0xbc0]
mov dword [ebp - 0x8f8], 0x80000002
mov dword [ebp - 0x8ee], 0x77726f66
mov dword [ebp - 0x8ea], 0x5f647261
mov dword [ebp - 0x8e6], 0x74736574
mov dword [ebp - 0x8e2], 0x6e75665f
mov dword [ebp - 0x8de], 0x63
mov dword [ebp - 0x8da], 0
mov dword [ebp - 0x8d6], 0
mov dword [ebp - 0x8d2], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0xbc0]
sub esp, 4
and eax, 0xfffff
mov dword [esp + 8], str.ldr_05lx.dll
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x74c]
mov dword [esp + 4], 0x104
mov dword [esp], eax
call fcn.0049f120
mov esi, eax
call fcn.0057d110
sub esi, 1
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x9e6
xor eax, eax
cmp esi, 0x102
setbe al
mov dword [esp + 4], str.snprintf_failed_n
mov dword [esp], eax
call fcn.0049fda0
mov eax, dword [ebp - 0xbd4]
test eax, eax
je 0x4a9380
mov dword [ebp - 0xa34], str.forward_test_func
mov dword [ebp - 0xa30], 0x5d4ebf
mov dword [esp + 4], 0x5c
mov edi, dword [ebp - 0xbd4]
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll_strrchr]
test eax, eax
lea edx, [eax + 1]
cmove edx, edi
mov dword [ebp - 0xbd4], edx
mov edi, edx
mov dword [esp + 4], 0x2e
mov dword [esp], edx
call dword [sym.imp.msvcrt.dll_strrchr]
test eax, eax
je 0x4a9aa0
sub eax, edi
mov dword [ebp - 0xbe8], eax
mov eax, dword [ebp - 0xbd4]
mov dword [esp + 8], 0x5d34a0
mov dword [esp + 4], 0x104
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x8ce]
mov dword [esp], eax
call fcn.0049f120
mov esi, eax
call fcn.0057d110
sub esi, 1
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x9f5
xor eax, eax
cmp esi, 0x102
setbe al
mov dword [esp + 4], str.snprintf___failed_n
mov dword [esp], eax
call fcn.0049fda0
cmp dword [ebp - 0xbe8], 0x113
ja 0x4a9ccb
mov eax, dword [ebp - 0xbe8]
mov edi, 0x114
mov dword [ebp - 0xc18], ebx
lea esi, [ebp - 0x648]
sub edi, eax
lea eax, [ebp - 0xa34]
mov dword [ebp - 0xbf0], eax
mov dword [ebp - 0xbec], edi
xor edi, edi
mov ebx, edi
mov edi, dword [ebp - 0xbe8]
mov dword [esp + 8], edi
mov eax, dword [ebp - 0xbd4]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0xbf0]
mov eax, dword [eax + ebx*4]
mov dword [esp + 8], 0x5d4eea
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xbec]
mov dword [esp + 4], eax
lea eax, [esi + edi]
mov dword [esp], eax
call fcn.0049f120
mov edi, eax
call fcn.0057d110
test edi, edi
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0xa06
setg al
xor edx, edx
mov dword [esp + 4], str.snprintf___failed_n
mov ecx, dword [ebp - 0xbec]
cmp edi, ecx
setb dl
and edx, eax
mov dword [esp], edx
call fcn.0049fda0
lea eax, [ebp - 0x7c8]
sub esi, eax
mov eax, dword [ebp - 0xbf4]
add esi, eax
mov dword [ebp + ebx*4 - 0x7a0], esi
lea esi, [ebp - 0x534]
test ebx, ebx
jne 0x4a8be0
mov ebx, 1
jmp 0x4a8b33
mov ebx, dword [ebp - 0xc18]
xor eax, eax
lea edi, [ebp - 0xb20]
mov ecx, 0x3b
mov edx, 4
rep stosd dword es:[edi], eax
mov eax, 0x10b
mov ecx, 1
mov esi, 4
mov word [ebp - 0xb14], ax
mov eax, dword [0x79ea48]
mov dword [ebp - 0xb2c], 0x4550
mov edi, dword [ebp - 0xbf8]
mov dword [ebp - 0xaf4], eax
mov dword [ebp - 0xaf0], eax
mov eax, dword [ebp - 0xbfc]
mov dword [ebp - 0xb18], 0x200200e0
mov byte [ebp - 0xb12], 1
mov dword [ebp - 0xb00], 0x10
mov dword [ebp - 0xaf8], 0x10000000
mov word [ebp - 0xaec], dx
mov word [ebp - 0xae8], cx
mov word [ebp - 0xae4], si
mov dword [ebp - 0xad0], 0x1400003
mov dword [ebp - 0xacc], 0x100000
mov dword [ebp - 0xac8], 0x1000
mov dword [ebp - 0xac4], 0x100000
mov dword [ebp - 0xac0], 0x1000
mov dword [ebp - 0xab8], 0x10
mov dword [ebp - 0xb24], 0x12345678
mov dword [ebp - 0xb28], 0x3014c
mov dword [ebp - 0xb10], ebx
mov dword [ebp - 0xad8], 0x1b0
mov dword [ebp - 0xadc], eax
cmp dword [ebp - 0xbd8], edi
jae 0x4a8cf5
mov dword [ebp - 0xab0], 0x3a8
mov eax, dword [ebp - 0xbf4]
mov dword [ebp - 0xab4], eax
mov eax, dword [ebp - 0xc00]
cmp byte [ebp - 0xbe4], 1
mov dword [ebp - 0xaac], eax
sbb eax, eax
and eax, 0xfffffeac
add eax, 0x168
mov dword [ebp - 0xaa8], eax
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0xa20
mov eax, dword [ebp - 0xad8]
mov dword [esp + 0xc], ebx
cmp ebx, eax
mov dword [esp + 8], eax
setae al
mov dword [esp + 4], str.headers__size__lx__should_not_overlap_with_text_area__RVA__lx__n
movzx eax, al
mov dword [esp], eax
mov esi, dword fs:[0x18]
call fcn.0049fda0
mov ebx, dword [ebp - 0xbf0]
mov dword [esp], 0x104
mov dword [esp + 4], ebx
call dword [sym.imp.kernel32.dll_GetTempPathA]
sub esp, 8
mov dword [ebp - 0xbc4], eax
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0xa25
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.GetTempPathA___err_lu_n
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xbc4]
sub eax, 1
cmp eax, 0x102
setbe al
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
lea eax, [ebp - 0x74c]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x5d4f4a
mov dword [esp + 4], 0x104
mov edi, dword [ebp - 0xbd0]
mov dword [esp], edi
call fcn.0049f120
mov ebx, eax
call fcn.0057d110
sub ebx, 1
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0xa28
xor eax, eax
cmp ebx, 0x102
setbe al
mov dword [esp + 4], str.snprintf_failed_n
mov dword [esp], eax
call fcn.0049fda0
mov ebx, dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x4000080
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 7
mov dword [esp + 4], 0x10000
mov dword [ebp - 0xbd0], edi
mov dword [esp], edi
call ebx
sub esp, 0x1c
mov dword [ebp - 0xbe8], eax
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0xa32
mov eax, dword [ebp - 0xbd0]
mov edi, dword [esi + 0x34]
call fcn.0049f4a0
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], str.CreateFile__s__for_delete_returned_error__lu_n
cmp dword [ebp - 0xbe8], 0xffffffff
setne al
mov dword [esp], eax
call fcn.0049fda0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 5
mov dword [esp + 4], 0x40000000
mov edi, dword [ebp - 0xbd0]
mov dword [esp], edi
call ebx
sub esp, 0x1c
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0xa3d
mov eax, dword [ebp - 0xbd0]
mov edi, dword [esi + 0x34]
call fcn.0049f4a0
mov dword [esp + 0xc], edi
lea edi, [ebp - 0xbc4]
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp + 4], str.CreateFile__s__for_write_returned_error__lu_n
mov dword [esp], eax
call fcn.0049fda0
mov eax, dword [sym.imp.kernel32.dll_WriteFile]
mov dword [esp], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x40
mov dword [esp + 4], 0x79e760
mov dword [ebp - 0xbd4], eax
call eax
sub esp, 0x14
mov dword [ebp - 0xbec], eax
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0xa41
mov eax, dword [ebp - 0xbc4]
mov dword [esp + 0xc], eax
mov ecx, dword [esi + 0x34]
cmp eax, 0x40
mov dword [esp + 4], str.write_dos_header:_err_lu_outlen_lu_n
sete al
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0xbec]
test edx, edx
setne dl
movzx edx, dl
and edx, eax
mov dword [esp], edx
call fcn.0049fda0
lea eax, [ebp - 0xb2c]
mov dword [esp], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0xf8
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xbd4]
call eax
sub esp, 0x14
mov dword [ebp - 0xbec], eax
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0xa44
mov eax, dword [ebp - 0xbc4]
mov dword [esp + 0xc], eax
mov ecx, dword [esi + 0x34]
cmp eax, 0xf8
mov dword [esp + 4], str.write_nt_header:_err_lu_outlen_lu_n
sete al
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0xbec]
test edx, edx
setne dl
movzx edx, dl
and edx, eax
mov dword [esp], edx
call fcn.0049fda0
lea eax, [ebp - 0xba4]
mov dword [esp], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x78
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xbd4]
call eax
sub esp, 0x14
mov dword [ebp - 0xbec], eax
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0xa47
mov eax, dword [ebp - 0xbc4]
mov dword [esp + 0xc], eax
mov ecx, dword [esi + 0x34]
mov dword [esp + 4], str.write_sections:_err_lu_outlen_lu_n
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0xbec]
test edx, edx
setne dl
cmp eax, 0x78
sete al
movzx eax, al
and eax, edx
mov dword [esp], eax
call fcn.0049fda0
mov ecx, dword [ebp - 0xbf8]
cmp dword [ebp - 0xbd8], ecx
jb 0x4a92e0
cmp byte [ebp - 0xbe4], 0
jne 0x4a9240
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp - 0xbfc]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
sub esp, 0x10
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0xa58
mov edi, dword fs:[0x18]
mov eax, dword [edi + 0x34]
mov dword [esp], esi
mov dword [esp + 4], str._lu_n
mov dword [esp + 8], eax
call fcn.0049fda0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_SetEndOfFile]
sub esp, 4
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0xa5a
mov eax, dword [edi + 0x34]
mov dword [esp], esi
mov dword [esp + 8], eax
mov dword [esp + 4], str._lu_n
call fcn.0049fda0
mov dword [esp], ebx
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
call ebx
sub esp, 4
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0xa5d
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str._lu_n
mov dword [esp + 8], eax
mov dword [esp], esi
call fcn.0049fda0
mov eax, dword [ebp - 0xc08]
test eax, eax
je 0x4a91a9
mov ecx, dword [ebp - 0xbf8]
cmp dword [ebp - 0xbd8], ecx
mov ecx, 0
cmovb ecx, dword [ebp - 0xc0c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc04]
test ecx, ecx
je 0x4a91c5
xor eax, eax
cmp byte [ebp - 0xbe4], 0
cmovne eax, dword [ebp - 0xc10]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xbd8]
mov eax, dword [ebp - 0xbe8]
mov dword [ebp + ecx*4 - 0xbb4], eax
add ecx, 1
mov dword [ebp - 0xbd8], ecx
cmp dword [ebp - 0xbdc], ecx
je 0x4a9398
mov edi, dword [ebp - 0xbe0]
xor ebx, ebx
lea eax, [ebp - 0xbcc]
mov dword [ebp - 0xc08], 0
cmp ecx, edi
cmovne eax, ebx
sete dl
test edi, edi
mov dword [ebp - 0xc04], eax
setne al
and edx, eax
mov eax, dword [ebp - 0xbd0]
mov byte [ebp - 0xbe4], dl
mov dword [ebp - 0xbd4], eax
add eax, 0x104
mov dword [ebp - 0xbd0], eax
jmp 0x4a8711
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp - 0xc00]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
lea eax, [ebp - 0x930]
sub esp, 0x10
mov dword [esp + 0xc], edi
mov dword [esp], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x168
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xbd4]
call eax
sub esp, 0x14
mov esi, eax
mov eax, 0xa54
call fcn.0049f440
mov eax, dword [ebp - 0xbc4]
mov edx, dword fs:[0x18]
mov dword [esp + 0xc], eax
mov edx, dword [edx + 0x34]
cmp eax, 0x168
mov dword [esp + 4], str.write_impdesc:_err_lu_outlen_lu_n
mov dword [esp + 8], edx
sete dl
xor eax, eax
test esi, esi
setne al
and eax, edx
mov dword [esp], eax
call fcn.0049fda0
jmp 0x4a90bd
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp - 0xbf4]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
lea eax, [ebp - 0x7c8]
sub esp, 0x10
mov dword [esp + 0xc], edi
mov dword [esp], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x3a8
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xbd4]
call eax
sub esp, 0x14
mov dword [ebp - 0xbec], eax
mov eax, 0xa4d
call fcn.0049f440
mov eax, dword [ebp - 0xbc4]
mov dword [esp + 0xc], eax
mov ecx, dword [esi + 0x34]
mov dword [esp + 4], str.write_expdesc:_err_lu_outlen_lu_n
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0xbec]
test edx, edx
setne dl
cmp eax, 0x3a8
sete al
movzx eax, al
and eax, edx
mov dword [esp], eax
call fcn.0049fda0
jmp 0x4a90b0
lea eax, [ebp - 0xa34]
mov dword [ebp - 0xbf0], eax
jmp 0x4a8be6
cmp dword [0x57fce8], 1
mov dword [ebp - 0xbf0], ebx
jle 0x4a93bd
mov eax, 0xa8f
call fcn.0049f440
mov dword [esp], str.Load_the_entire_test_DLL_chain_n
call fcn.0049f7c0
mov eax, dword fs:[0x18]
mov dword [ebp - 0xbd0], eax
mov esi, dword [ebp - 0xc14]
xor ebx, ebx
mov dword [ebp - 0xbd8], 0
lea esi, [esi]
nop
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0xa95
mov eax, esi
call fcn.0049f4a0
mov dword [esp], esi
mov edi, eax
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
test eax, eax
sete al
mov dword [esp + 8], edi
movzx eax, al
mov dword [esp + 4], str._s_already_loaded_n
mov dword [esp], eax
call fcn.0049fda0
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov dword [ebp + ebx*4 - 0x7c8], eax
sub esp, 4
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0xa99
mov eax, dword [ebp - 0xbd0]
mov ecx, dword [eax + 0x34]
mov eax, esi
mov dword [ebp - 0xbd4], ecx
call fcn.0049f4a0
mov ecx, dword [ebp - 0xbd4]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
xor eax, eax
test edi, edi
setne al
mov dword [esp + 0x10], ecx
mov dword [esp], eax
mov dword [esp + 4], str.LoadLibraryA_temp_paths__Iu____s__err_lu_n
call fcn.0049fda0
mov edx, dword [ebp - 0xbd8]
mov ecx, dword [ebp - 0xbe0]
cmp edx, ecx
mov eax, ecx
cmovae eax, edx
cmp ecx, ebx
mov ecx, eax
cmovne ecx, edx
mov dword [ebp - 0xbd8], ecx
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [ebp - 0xbd4], eax
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0xaa3
mov eax, dword [ebp - 0xbd0]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x14], eax
mov ecx, dword [ebp - 0xbd4]
xor eax, eax
mov dword [esp + 8], ebx
cmp edi, ecx
mov dword [esp + 0x10], ecx
sete al
mov dword [esp + 0xc], edi
add ebx, 1
add esi, 0x104
mov dword [esp + 4], str.modules__Iu__expected__p__got__p_err_lu_n
mov dword [esp], eax
call fcn.0049fda0
cmp dword [ebp - 0xbdc], ebx
jne 0x4a93e0
cmp dword [0x57fce8], 1
jg 0x4a9b10
mov eax, dword [ebp - 0x7c8]
mov edx, dword [ebp - 0xbc8]
mov ebx, dword [eax + edx]
add ebx, eax
add eax, dword [eax + edx + 4]
mov edi, eax
mov eax, dword [ebp - 0xbe0]
test eax, eax
je 0x4a9609
mov eax, dword [ebp - 0xbe0]
mov esi, dword [ebp + eax*4 - 0x7c8]
mov eax, dword [ebp - 0xbcc]
mov dword [ebp - 0xbd0], eax
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0xab8
mov eax, dword [ebp - 0xbd0]
mov eax, dword [esi + eax]
mov dword [esp + 0x10], ebx
mov dword [esp + 8], 0
cmp ebx, eax
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 4], str.import_thunk_mismatch___Iu_:___Ix___Ix__n
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0xab8
mov eax, dword [ebp - 0xbd0]
mov eax, dword [esi + eax + 4]
mov dword [esp + 0x10], edi
mov dword [esp + 8], 1
cmp eax, edi
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 4], str.import_thunk_mismatch___Iu_:___Ix___Ix__n
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
cmp dword [0x57fce8], 1
jle 0x4a9609
mov eax, 0xabe
call fcn.0049f440
mov dword [esp], str.Call_GetProcAddress___on_the_exporter_DLL__if_any_n
call fcn.0049f7c0
mov eax, dword [ebp - 0xc1c]
test eax, eax
jne 0x4a9bc4
cmp dword [0x57fce8], 1
jg 0x4a9ca2
mov edx, dword [ebp - 0xbd8]
test edx, edx
je 0x4a97b8
mov dword [ebp - 0xbd4], 0
mov eax, dword [ebp - 0xc14]
mov edi, dword fs:[0x18]
mov dword [ebp - 0xbe8], eax
mov eax, dword [sym.imp.kernel32.dll_FreeLibrary]
mov dword [ebp - 0xbe4], eax
lea esi, [esi]
mov eax, dword [ebp - 0xbd4]
mov esi, dword [ebp + eax*4 - 0x7c8]
mov dword [esp], esi
mov ebx, dword [ebp - 0xbe4]
call ebx
sub esp, 4
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0xad6
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xbd4]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str.FreeLibrary_modules__Iu___err_lu_n
call fcn.0049fda0
mov ebx, dword [ebp - 0xbe8]
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov edx, dword [ebp - 0xbe0]
xor ecx, ecx
mov ebx, eax
mov eax, dword [ebp - 0xbd4]
sub esp, 4
mov dword [ebp - 0xbd0], eax
add eax, 1
mov dword [ebp - 0xbd4], eax
cmp eax, edx
je 0x4a96f7
mov eax, dword [0x8f0770]
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebp - 0xbec], ecx
call fcn.0057d110
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
mov ecx, dword [ebp - 0xbec]
or edx, ecx
mov dword [eax + 0x10], edx
jmp 0x4a976a
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0xadb
mov eax, dword [edi + 0x34]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], esi
mov eax, dword [ebp - 0xbd0]
mov dword [esp + 4], str.modules__Iu__expected__p__got__p__unloaded___err_lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp esi, ebx
sete al
mov dword [esp], eax
call fcn.0049fda0
call fcn.0057d110
shr dword [eax + 0x10], 1
call fcn.0057d110
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x4a9720
add dword [ebp - 0xbe8], 0x104
mov ebx, dword [ebp - 0xbd8]
cmp dword [ebp - 0xbd4], ebx
jb 0x4a9660
cmp dword [0x57fce8], 1
jle 0x4a97b8
mov eax, 0xae0
call fcn.0049f440
mov dword [esp], str.The_ultimate_dependant_DLL_should_keep_other_DLLs_from_being_unloaded_n
call fcn.0049f7c0
mov eax, dword [ebp - 0xc14]
lea esi, [ebp - 0x7c8]
mov dword [ebp - 0xbd4], 0
mov edi, dword fs:[0x18]
mov dword [ebp - 0xbe4], eax
lea esi, [esi]
nop
mov eax, dword [ebp - 0xbe4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov ebx, dword [ebp - 0xbd8]
xor ecx, ecx
mov dword [ebp - 0xbe8], eax
mov eax, dword [ebp - 0xbd4]
sub esp, 4
mov dword [ebp - 0xbd0], eax
mov edx, eax
add eax, 1
mov dword [ebp - 0xbd4], eax
cmp edx, ebx
jae 0x4a9830
cmp dword [ebp - 0xbe0], eax
je 0x4a9830
mov ebx, dword [0x8f0770]
xor ecx, ecx
test ebx, ebx
setne cl
mov dword [ebp - 0xbec], ecx
call fcn.0057d110
mov ecx, dword [ebp - 0xbec]
mov ebx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ebx + ebx]
mov ebx, dword [ebp - 0xbe8]
or edx, ecx
mov dword [eax + 0x10], edx
jmp 0x4a98ad
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0xae7
mov eax, dword [esi]
mov edx, dword [edi + 0x34]
mov dword [esp + 0x10], ebx
cmp eax, ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], edx
sete al
mov ecx, dword [ebp - 0xbd0]
movzx eax, al
mov dword [esp + 4], str.modules__Iu__expected__p__got__p__unloaded___err_lu_n
mov dword [esp + 8], ecx
mov dword [esp], eax
call fcn.0049fda0
call fcn.0057d110
shr dword [eax + 0x10], 1
call fcn.0057d110
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x4a9860
add dword [ebp - 0xbe4], 0x104
mov ecx, dword [ebp - 0xbd4]
add esi, 4
cmp dword [ebp - 0xbdc], ecx
jne 0x4a97e0
cmp dword [0x57fce8], 1
jle 0x4a98fe
mov eax, 0xaec
call fcn.0049f440
mov dword [esp], str.Unreference_the_remaining_modules__including_the_dependant_DLL__n
call fcn.0049f7c0
mov ebx, dword [ebp - 0xbdc]
cmp dword [ebp - 0xbd8], ebx
jae 0x4a99d5
mov edi, dword [ebp - 0xbd8]
mov eax, dword [ebp - 0xc14]
mov esi, dword fs:[0x18]
imul ebx, edi, 0x104
add eax, ebx
mov ebx, eax
mov eax, dword [sym.imp.kernel32.dll_FreeLibrary]
mov dword [ebp - 0xbe4], eax
mov eax, dword [ebp + edi*4 - 0x7c8]
mov dword [esp], eax
mov eax, dword [ebp - 0xbe4]
call eax
sub esp, 4
mov dword [ebp - 0xbd0], eax
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0xaf1
mov eax, dword [esi + 0x34]
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.FreeLibrary_modules__Iu___err_lu_n
mov ecx, dword [ebp - 0xbd0]
mov dword [esp], ecx
call fcn.0049fda0
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0xaf4
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
test eax, eax
sete al
mov dword [esp + 8], edi
add ebx, 0x104
add edi, 1
movzx eax, al
mov dword [esp + 4], str.modules__Iu__should_not_be_kept_loaded__2__n
mov dword [esp], eax
call fcn.0049fda0
cmp dword [ebp - 0xbdc], edi
jne 0x4a9938
cmp dword [0x57fce8], 1
jle 0x4a99f4
mov eax, 0xaf8
call fcn.0049f440
mov dword [esp], str.All_modules_should_be_unloaded__the_unloading_process_should_not_reload_any_DLL_n
call fcn.0049f7c0
mov esi, dword [ebp - 0xc20]
mov edi, dword [ebp - 0xbdc]
xor ebx, ebx
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0xafc
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
test eax, eax
sete al
mov dword [esp + 8], ebx
add ebx, 1
add esi, 0x104
movzx eax, al
mov dword [esp + 4], str.modules__Iu__should_not_be_kept_loaded__3__n
mov dword [esp], eax
call fcn.0049fda0
cmp edi, ebx
jne 0x4a9a02
cmp dword [0x57fce8], 1
jle 0x4a9a68
mov eax, 0xb00
call fcn.0049f440
mov dword [esp], str.Close_and_delete_temp_files_n
call fcn.0049f7c0
mov eax, dword [ebp - 0xbdc]
lea ebx, [ebp - 0xbb4]
mov edi, dword [ebp - 0xbf0]
lea esi, [ebx + eax*4]
mov eax, dword [ebx]
add ebx, 4
mov dword [esp], eax
call edi
sub esp, 4
cmp esi, ebx
jne 0x4a9a7d
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov eax, dword [ebp - 0xbd4]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_strlen]
mov dword [ebp - 0xbe8], eax
jmp 0x4a8a9a
mov edi, dword [ebp - 0xbf8]
cmp dword [ebp - 0xc1c], edi
jae 0x4a9ce8
cmp dword [0x57fce8], 1
jg 0x4a9b73
mov dword [ebp - 0xbe0], 0
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc14], eax
mov dword [ebp - 0xc20], eax
lea eax, [ebp - 0xbcc]
mov dword [ebp - 0xc04], eax
jmp 0x4a86de
mov eax, 0xaa8
call fcn.0049f440
mov dword [esp], str.Get_address_of_exported_functions_from_the_source_module_n
call fcn.0049f7c0
mov eax, dword [ebp - 0x7c8]
mov edx, dword [ebp - 0xbc8]
mov ebx, dword [eax + edx]
add ebx, eax
add eax, dword [eax + edx + 4]
cmp dword [0x57fce8], 1
mov edi, eax
jle 0x4a953c
mov eax, 0xab1
call fcn.0049f440
mov dword [esp], str.Check_import_address_table_of_the_importer_DLL__if_any_n
call fcn.0049f7c0
mov eax, dword [ebp - 0xbe0]
test eax, eax
je 0x4a95ea
jmp 0x4a954a
mov dword [ebp - 0xbe0], 0
mov eax, 0xa82
call fcn.0049f440
mov dword [esp], str.Generate_a_chain_of_test_DLL_fixtures_n
call fcn.0049f7c0
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc14], eax
mov dword [ebp - 0xc20], eax
lea eax, [ebp - 0xbcc]
mov dword [ebp - 0xc04], eax
mov eax, dword [ebp - 0xbe0]
test eax, eax
jne 0x4a86d4
jmp 0x4a86de
mov eax, dword [ebp - 0xc1c]
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov edx, dword [ebp + eax*4 - 0x7c8]
mov dword [esp + 4], str.forward_test_func
mov dword [esp], edx
mov dword [ebp - 0xbd4], edx
call esi
sub esp, 8
mov dword [ebp - 0xbd0], eax
mov eax, 0xac5
call fcn.0049f440
mov dword [esp + 0xc], ebx
mov ecx, dword [ebp - 0xbd0]
xor eax, eax
mov dword [esp + 4], str.GetProcAddress_mismatch__0_:___Ix___Ix__n
cmp ecx, ebx
mov dword [esp + 8], ecx
sete al
mov dword [esp], eax
call fcn.0049fda0
mov dword [esp + 4], 2
mov edx, dword [ebp - 0xbd4]
mov dword [esp], edx
call esi
sub esp, 8
mov ebx, eax
mov eax, 0xac8
call fcn.0049f440
xor eax, eax
cmp ebx, edi
mov dword [esp + 0xc], edi
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.GetProcAddress_mismatch__1_:___Ix___Ix__n
call fcn.0049fda0
mov edi, dword [ebp - 0xbd8]
mov eax, dword [ebp - 0xc1c]
cmp edi, eax
cmovae eax, edi
cmp dword [0x57fce8], 1
mov dword [ebp - 0xbd8], eax
jle 0x4a9632
mov eax, 0xacf
call fcn.0049f440
mov dword [esp], str.Unreference_modules_except_the_ultimate_dependant_DLL_n
call fcn.0049f7c0
jmp 0x4a9632
mov eax, 0xacf
call fcn.0049f440
mov dword [esp], str.Unreference_modules_except_the_ultimate_dependant_DLL_n
call fcn.0049f7c0
mov eax, dword [ebp - 0xbd8]
test eax, eax
jne 0x4a9632
jmp 0x4a9799
mov dword [esp + 8], 0xa00
mov dword [esp + 4], str..._dlls_kernel32_tests_loader.c
mov dword [esp], str.ext_start___buf_size
call dword [sym.imp.msvcrt.dll__assert]
mov dword [esp + 8], 0xa7b
mov dword [esp + 4], str..._dlls_kernel32_tests_loader.c
mov dword [esp], str.exporter_index___num_chained_export_modules
call dword [sym.imp.msvcrt.dll__assert]
lea esi, [esi]
lea esi, [esi]