Function at 0x4df040
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ecb40
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [0x7ce4e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x444], ebx
lea ecx, [ebp - 0x468]
push ecx
lea ecx, [ebx + 8]
call fcn.004dfb00
mov ecx, dword [eax + 8]
add ecx, dword [eax]
lea eax, [ebx + 8]
push eax
mov dword [ebp - 0x448], ecx
call fcn.004e0120
add esp, 4
lea eax, [ebp - 0x42c]
lea ecx, [ebx + 0xc]
push eax
call fcn.004ba060
mov eax, dword [0x7fa184]
test eax, eax
je 0x4df146
lea ecx, [ebp - 0x42c]
push ecx
push dword [ebx + 0xa0]
push dword [ebx + 0xa8]
push dword [ebx + 0xa4]
push dword [ebx]
call eax
add esp, 0x14
test al, al
je 0x4df146
mov ecx, dword [ebp - 0x418]
cmp ecx, 0x10
jb 0x4df116
mov edx, dword [ebp - 0x42c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4df10c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4df4e4
push ecx
push edx
call fcn.005be247
add esp, 8
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebx + 8]
call fcn.004defb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005be209
mov esp, ebp
pop ebp
ret
test byte [0x7d7b6c], 2
je 0x4df16c
cmp dword [ebp - 0x418], 0x10
lea eax, [ebp - 0x42c]
cmovae eax, dword [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4df171
cmp dword [ebx], 2
jl 0x4df1b2
cmp dword [ebp - 0x418], 0x10
lea edi, [ebp - 0x42c]
mov esi, dword [ebp - 0x41c]
cmovae edi, dword [ebp - 0x42c]
push 2
call fcn.005d42bb
add esp, 4
push eax
push 1
push esi
push edi
call fcn.005d2692
push 2
call fcn.005d42bb
add esp, 0x14
push eax
call fcn.005d4d10
add esp, 4
test byte [0x7d7b6c], 1
je 0x4df1f4
call fcn.004deb50
test al, al
je 0x4df1f4
cmp dword [ebp - 0x418], 0x10
lea ecx, [ebp - 0x430]
push 0
push ecx
push dword [ebp - 0x41c]
lea eax, [ebp - 0x42c]
cmovae eax, dword [ebp - 0x42c]
push eax
push dword [0x801de4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebx], 3
jne 0x4df4ac
mov edi, dword [0x7fa188]
test edi, edi
je 0x4df2e5
cmp dword [ebp - 0x418], 0x10
lea eax, [ebp - 0x42c]
mov esi, dword [edi]
mov ecx, esi
cmovae eax, dword [ebp - 0x42c]
mov dword [ebp - 0x430], eax
mov eax, dword [ebp - 0x41c]
mov dword [ebp - 0x450], eax
inc eax
push 0x4cf434fa
push eax
mov dword [ebp - 0x44c], eax
call fcn.004ee190
mov ecx, dword [esi + 0x1c]
mov ebx, eax
test ecx, ecx
je 0x4df26b
test ebx, ebx
je 0x4df262
mov edx, dword [ecx]
mov esi, dword [ebp - 0x44c]
push esi
call dword [edx + 0x14]
jmp 0x4df271
mov eax, dword [ecx]
push 0
call dword [eax + 0x14]
jmp 0x4df2df
mov esi, dword [ebp - 0x44c]
mov edx, dword [edi]
cmp ebx, 0x30
je 0x4df2df
cmp ebx, 0x40
jb 0x4df2df
test bl, 7
jne 0x4df2df
add esi, 0x10
lea eax, [esi + ebx]
cmp eax, dword [edx + 0xc]
ja 0x4df2df
mov ecx, dword [edx + 4]
add ecx, ebx
cmp dword [ecx + 4], 0xc8799269
jne 0x4df2df
cmp dword [ecx], esi
jb 0x4df2df
mov eax, dword [ecx]
add eax, ebx
cmp eax, dword [edx + 0xc]
ja 0x4df2df
mov eax, dword [ecx + 8]
cmp eax, 0x4cf434fa
jne 0x4df2df
mov edx, dword [edx + 4]
add edx, ebx
lea eax, [edx + 0x10]
neg edx
sbb edx, edx
and edx, eax
je 0x4df2df
push dword [ebp - 0x450]
push dword [ebp - 0x430]
push edx
call fcn.005c0660
mov ecx, dword [edi]
add esp, 0xc
push ebx
call fcn.004ee350
mov ebx, dword [ebp - 0x444]
cmp dword [ebp - 0x418], 0x10
lea esi, [ebp - 0x42c]
lea eax, [ebp - 0x410]
cmovae esi, dword [ebp - 0x42c]
xor edx, edx
sub esi, eax
lea eax, [ebp - 0x410]
add eax, edx
mov cl, byte [esi + eax]
mov byte [eax], cl
test cl, cl
je 0x4df321
inc edx
cmp edx, 0x400
jb 0x4df303
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x410]
push eax
call fcn.004e6960
add esp, 4
cmp dword [0x801dcc], 0
je 0x4df4a2
sub esp, 8
mov ecx, 0x801dcc
push 0x801dd0
call fcn.004e01d0
add esp, 0xc
mov edx, dword [eax + 8]
cmp edx, dword [eax + 0xc]
je 0x4df4a2
sub esp, 8
mov dword [ebp - 0x414], 0
mov ecx, 0x801dcc
push 0x801dd0
call fcn.004e01d0
add esp, 0xc
mov ecx, eax
call fcn.004dfda0
push 0
lea ecx, [ebp - 0x414]
mov esi, eax
call fcn.004e5c00
mov esi, dword [esi]
test esi, esi
je 0x4df3a2
mov eax, 1
lock xadd dword [esi], eax
mov ecx, dword [ebp - 0x414]
mov dword [ebp - 0x414], esi
or edi, 0xffffffff
mov dword [ebp - 4], 0
test ecx, ecx
je 0x4df3d6
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x4df3d0
mov eax, dword [ecx + 8]
push ecx
call eax
add esp, 4
mov esi, dword [ebp - 0x414]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4df483
cmp dword [ebp - 0x418], 0x10
lea edi, [ebp - 0x42c]
cmovae edi, dword [ebp - 0x42c]
add edi, dword [ebp - 0x448]
jne 0x4df405
xor edx, edx
jmp 0x4df417
xor edx, edx
cmp byte [edi], dl
je 0x4df417
nop dword [eax + eax]
inc edx
cmp byte [edx + edi], 0
jne 0x4df410
cmp dword [ebp - 0x418], 0x10
lea ecx, [ebp - 0x42c]
mov eax, dword [ebx + 0xa0]
cmovae ecx, dword [ebp - 0x42c]
sub dword [ebp - 0x448], eax
add eax, ecx
lea ecx, [ebp - 0x438]
mov dword [ebp - 0x440], eax
mov eax, dword [ebp - 0x448]
push ecx
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x438], edi
push ecx
push dword [ebx + 0xa8]
mov dword [ebp - 0x434], edx
push dword [ebx + 0xa4]
mov dword [ebp - 0x43c], eax
mov eax, dword [esi + 4]
push esi
call eax
mov esi, dword [ebp - 0x414]
add esp, 0x14
or edi, 0xffffffff
mov dword [ebp - 4], 1
test esi, esi
je 0x4df4ac
lock xadd dword [esi], edi
cmp edi, 1
jne 0x4df4ac
mov eax, dword [esi + 8]
push esi
call eax
add esp, 4
jmp 0x4df4ac
cmp byte [0x7faa90], 0
jne 0x4df4e9
int3
mov ecx, dword [ebp - 0x418]
cmp ecx, 0x10
jb 0x4df116
mov edx, dword [ebp - 0x42c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4df10c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4df10c
call fcn.005c44be
push 1
call fcn.005dd389
int3