Function at 0x404800
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x4c
mov edx, dword [eax]
mov dword [ebp - 0x20], ecx
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x1c], eax
test byte [0x425010], 8
jne 0x404c30
test esi, esi
je 0x404c84
movzx eax, word [esi]
test ax, ax
jne 0x404855
jmp 0x404c84
add esi, 2
je 0x4048f0
movzx eax, word [esi]
test ax, ax
je 0x4048f0
cmp ax, 0x20
je 0x404840
cmp ax, 9
je 0x404840
test esi, esi
je 0x4048f0
mov eax, esi
test byte [ebp + 8], 1
je 0x4048f0
add eax, 2
cmp word [eax], 0
jne 0x404871
sub eax, esi
mov dword [ebp - 0x28], edx
sar eax, 1
lea edi, [eax + eax + 2]
mov dword [esp], edi
call dbg.heap_xalloc
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
mov dword [ebp - 0x24], eax
call sym._memcpy
mov eax, dword [ebx]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0
mov eax, dword [eax + 4]
mov dword [esp], esi
mov dword [esp + 4], eax
call dbg.WCMD_execute
mov ecx, dword [ebp - 0x24]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [ebp - 0x28]
sub esp, 0xc
lea esi, [esi]
nop
mov edi, dword [ebx]
cmp edi, edx
je 0x404c84
mov esi, dword [ebp + 8]
movzx edx, byte [0x425010]
test edi, edi
je 0x404a5c
lea esi, [esi]
and edx, 8
jne 0x404960
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
mov ecx, eax
sub edx, 1
cmp edx, 1
jbe 0x4049b4
mov edx, dword [ebp - 0x1c]
cmp dword [eax + 0x10], edx
jle 0x404a70
test esi, esi
jne 0x404bb5
movzx edx, byte [0x425010]
test dl, 8
jne 0x404be1
cmp eax, edi
je 0x404a53
and edx, 8
mov edi, eax
je 0x404915
lea esi, [esi]
nop
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.Processing_cmdList__p____delim__d__bd__d____d__processThese__d__n
mov dword [esp + 8], str.WCMD_part_execute
mov dword [esp + 4], 0x425010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.9
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
mov ecx, eax
sub edx, 1
cmp edx, 1
ja 0x404928
test esi, esi
je 0x404a64
mov edx, dword [eax]
test edx, edx
je 0x404a64
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov eax, dword [eax + 4]
mov dword [esp], edx
mov dword [esp + 4], eax
call dbg.WCMD_execute
mov eax, dword [ebx]
cmp edi, eax
je 0x404a53
mov edi, eax
test edi, edi
je 0x404a5c
movzx edx, byte [0x425010]
jmp 0x404910
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x1c]
cmp dword [ecx + 0x10], eax
jne 0x404a77
mov eax, dword [ecx]
mov dword [esp], 0x4265dc
mov dword [esp + 4], eax
call dbg.WCMD_keyword_ws_found
test eax, eax
je 0x404cca
test byte [0x425010], 8
je 0x404a51
mov dword [esp + 0xc], str.Still_inside_FOR_loop__not_an_end_of_IF_statement_n
mov dword [esp + 8], str.WCMD_part_execute
mov dword [esp + 4], 0x425010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.9
mov eax, dword [ebx]
mov edi, dword [eax + 8]
mov dword [ebx], edi
test edi, edi
jne 0x4049ed
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp ecx, edi
je 0x404a53
mov edi, ecx
jmp 0x4049ed
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x404ac5
test esi, esi
jne 0x404c90
cmp ecx, edi
je 0x404c10
mov edi, ecx
test byte [0x425010], 8
je 0x4049e9
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], str.Skipping_this_command__as_in_not_process_mode__next___p__n
mov dword [esp + 8], str.WCMD_part_execute
mov dword [esp + 4], 0x425010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.9
mov edi, dword [ebx]
jmp 0x4049e9
mov eax, dword [ecx]
mov dword [esp], 0x426534
mov dword [esp + 4], eax
call dbg.WCMD_keyword_ws_found
test eax, eax
je 0x404a00
mov ecx, dword [ebp + 8]
mov eax, dword [ebx]
test ecx, ecx
jne 0x404b80
mov ecx, 0x6c
mov edx, 0x426534
jmp 0x404b04
movzx ecx, word [edx + 2]
add edx, 2
test cx, cx
jne 0x404b00
sub edx, 0x426534
mov ecx, dword [eax]
sar edx, 1
lea ecx, [ecx + edx*2 + 2]
movzx edx, word [ecx]
test dx, dx
je 0x404b9c
cmp dx, 9
je 0x404b30
cmp dx, 0x20
jne 0x404b47
nop
add ecx, 2
movzx edx, word [ecx]
test dx, dx
je 0x404b9c
cmp dx, 0x20
je 0x404b30
cmp dx, 9
je 0x404b30
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov eax, dword [eax + 4]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dbg.WCMD_execute
mov eax, dword [ebx]
cmp eax, edi
je 0x404c20
mov edi, eax
mov esi, dword [ebp - 0x20]
jmp 0x4049e9
mov eax, dword [eax + 8]
mov dword [ebx], eax
test eax, eax
je 0x404a5c
mov esi, dword [ebp - 0x1c]
cmp dword [eax + 0x10], esi
jg 0x404b80
mov edx, dword [eax + 0xc]
test edx, edx
jne 0x404b80
cmp eax, edi
je 0x404c20
mov edi, eax
mov esi, dword [ebp - 0x20]
movzx edx, byte [0x425010]
jmp 0x404910
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call dbg.WCMD_process_commands
mov dword [ebx], eax
cmp edi, eax
jne 0x4049e7
mov edi, dword [eax + 8]
mov dword [ebx], edi
jmp 0x404a58
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Skipping_command__p_due_to_stack_depth_n
mov dword [esp + 8], str.WCMD_part_execute
mov dword [esp + 4], 0x425010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.9
mov eax, dword [ebx]
jmp 0x404bcf
mov ecx, dword [edi + 8]
mov dword [ebx], ecx
jmp 0x404a87
mov edi, dword [eax + 8]
mov esi, dword [ebp - 0x20]
mov dword [ebx], edi
jmp 0x4049e9
mov eax, esi
mov dword [ebp - 0x24], edx
call sym._wine_dbgstr_wn.constprop.5
mov ecx, dword [ebp - 0x20]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0xc], str.cmdList__p___firstCmd__s___doIt__d___isIF__d__n
mov dword [esp + 0x18], ecx
mov dword [esp + 8], str.WCMD_part_execute
mov dword [esp + 4], 0x425010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.9
test esi, esi
mov edx, dword [ebp - 0x24]
jne 0x404849
jmp 0x4048f0
mov edi, dword [edx + 8]
mov dword [ebx], edi
jmp 0x4048fa
test byte [0x425010], 8
je 0x404a5c
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], str.Found_end_of_this_IF_statement__next___p__n
mov dword [esp + 8], str.WCMD_part_execute
mov dword [esp + 4], 0x425010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.9
jmp 0x404a5c
test byte [0x425010], 8
je 0x404a5c
mov dword [esp + 0xc], str.Found_end_of_this_nested_IF_statement__ending_this_if_n
mov dword [esp + 8], str.WCMD_part_execute
mov dword [esp + 4], 0x425010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.9
jmp 0x404a5c