Function at 0x40d400
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
mov eax, 0xd
sub eax, ecx
sub esp, 0x1dc
mov dword [ebp - 0x1a0], ecx
mov dword [ebp - 0x1a8], eax
lea eax, [ebx + 0x18]
mov dword [ebp - 0x1a4], eax
lea eax, [ebp - 0x118]
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00429c6c
sub esp, 0xc
test eax, eax
je 0x40d6b0
lea eax, [ebp - 0x98]
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00429b3c
sub esp, 0xc
test eax, eax
je 0x40d688
cmp dword [ebx + 0x24], 0xffffffff
je 0x40d499
mov dword [esp + 8], 0x37d
mov dword [esp + 4], str._Users_gcenx_Documents_GitHub_wineskincx_programs_winedbg_gdbproxy.c
mov dword [esp], str.gdbctx__out_curr_packet___1
call dword [sym.imp.ucrtbase.dll__assert]
mov eax, dword [ebp - 0x1a4]
mov ecx, 1
mov edx, 0x435000
mov edi, 8
call fcn.0040c820
mov eax, dword [ebx + 0x1c]
mov ecx, 1
mov edx, 0x435002
mov dword [ebx + 0x24], eax
mov eax, ebx
call fcn.0040c880
mov dword [esp + 4], 0xfffffffc
mov dword [esp], esi
call fcn.00429b5c
mov dword [ebp - 0x19c], eax
mov eax, dword [ebx + 0x9c]
sub esp, 8
test eax, eax
je 0x40d4f9
mov eax, dword [eax + 0x24]
test eax, eax
je 0x40d4f9
mov edi, dword [eax + 4]
add edi, edi
mov dword [esp + 4], 0xfffffff0
mov dword [esp], esi
call fcn.00429b5c
lea ecx, [ebp - 0x98]
sub esp, 8
mov dword [esp + 0x30], ecx
mov ecx, dword [ebp - 0x19c]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x118]
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], 0x435004
mov eax, dword [ebp - 0x1a8]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0x435004
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x1a0]
mov dword [esp + 8], str._s_04Ix_s__17.17s__08lx__0Ix__.14s_n
mov dword [esp + 4], pe_nt_image_headers32
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x198]
mov dword [esp], eax
call fcn.0040c770
lea eax, [ebp - 0x198]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov edi, eax
lea eax, [eax + eax]
mov ecx, eax
mov dword [ebp - 0x19c], eax
mov eax, dword [ebx + 0x1c]
lea edx, [ecx + eax]
mov ecx, dword [ebx + 0x20]
cmp ecx, edx
jb 0x40d658
mov edx, dword [ebx + 0x18]
add edx, eax
test edi, edi
je 0x40d5f1
mov eax, dword [ebp - 0x19c]
lea ecx, [ebp - 0x198]
lea edi, [edx + eax]
lea esi, [esi]
movzx eax, byte [ecx]
add edx, 2
add ecx, 1
shr al, 4
movzx eax, al
movzx eax, byte [eax + str.0123456789abcdef]
mov byte [edx - 2], al
movzx eax, byte [ecx - 1]
and eax, 0xf
movzx eax, byte [eax + str.0123456789abcdef]
mov byte [edx - 1], al
cmp edx, edi
jne 0x40d5c0
mov eax, dword [ebx + 0x1c]
mov edi, dword [ebp - 0x19c]
add edi, eax
mov eax, ebx
mov dword [ebx + 0x1c], edi
call fcn.0040ca20
mov dword [esp + 4], 5
mov dword [esp], esi
call fcn.00429b6c
sub esp, 8
test eax, eax
je 0x40d62c
mov edi, dword [ebp - 0x1a0]
mov edx, eax
mov eax, ebx
lea ecx, [edi + 1]
call fcn.0040d400
mov dword [esp], esi
mov dword [esp + 4], 2
call fcn.00429b6c
sub esp, 8
mov esi, eax
test eax, eax
jne 0x40d42c
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ecx + ecx*2]
shr eax, 1
cmp eax, edx
cmovb eax, edx
mov dword [ebx + 0x20], eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov edx, eax
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x1c]
jmp 0x40d5a8
mov dword [ebp - 0x98], 0x45202d2d
mov dword [ebp - 0x94], 0x7974706d
mov dword [ebp - 0x90], 0x2d2d20
jmp 0x40d476
mov dword [ebp - 0x118], 0x55202d2d
mov eax, 0x2d
mov dword [ebp - 0x114], 0x6f6e6b6e
mov dword [ebp - 0x110], 0x2d206e77
mov word [ebp - 0x10c], ax
jmp 0x40d451