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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x84
mov ebx, dword [esp + 0xa0]
mov ebp, dword [esp + 0x98]
mov ecx, dword [ebp + 0x40]
mov eax, ecx
or eax, 8
mov dword [ebp + 0x40], eax
mov eax, dword [ebx]
test eax, eax
je 0x4dbb85
mov ecx, dword [ebp + 0x50]
test ecx, ecx
jne 0x4dbbce
jmp 0x4dbc0b
mov eax, dword [esp + 0x9c]
or ecx, 9
mov dword [ebp + 0x40], ecx
test eax, eax
je 0x4dbbbc
mov dword [ebp + 0x50], 0
mov eax, dword [ebp + 0x68]
test eax, eax
je 0x4dbbb5
mov eax, dword [eax + 0x20]
test eax, eax
je 0x4dbbb5
lea ecx, [ebp + 0x6c]
push ecx
push ebp
call eax
add esp, 8
mov dword [ebp + 0x68], 0
mov dword [ebx], 2
mov eax, 2
mov ecx, dword [ebp + 0x50]
test ecx, ecx
je 0x4dbc0b
cmp dword [ebp + 0x68], 0
je 0x4dbc0b
mov dword [ebx], 5
lea eax, [ebx + 0x18]
push eax
push ebp
call dword [ecx + 4]
add esp, 8
test eax, eax
je 0x4dc983
cmp eax, 0xffffffdb
je 0x4dc137
push str.Unrecoverable_error_exchanging_keys
push 0xfffffffffffffff8
push ebp
call fcn.004e44a0
add esp, 0xc
jmp 0x4dc983
cmp eax, 4
je 0x4dc103
cmp eax, 3
je 0x4dbc4a
cmp eax, 2
jne 0x4dc96e
mov eax, dword [ebp + 0x10c]
mov dword [ebx + 0x208], eax
mov eax, dword [ebp + 0x110]
mov dword [ebx + 0x20c], eax
mov dword [ebp + 0x10c], 0
mov dword [ebx], 3
cmp dword [ebp + 0x11428], 0
je 0x4dbc9c
mov edi, dword [ebp + 0x1142c]
mov esi, dword [ebp + 0x11430]
mov dword [ebp + 0x1142c], 0
mov dword [ebp + 0x11430], 0
push 0
push 0
push esi
push edi
push ebp
call fcn.004f0e40
add esp, 0x14
test eax, eax
je 0x4dbcb0
cmp eax, 0xffffffdb
jne 0x4dbcdd
mov dword [ebp + 0x1142c], edi
mov dword [ebp + 0x11430], esi
jmp 0x4dc137
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x4dbcfc
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov edi, eax
jmp 0x4dbd2c
mov eax, dword [ebp + 0x10c]
test eax, eax
je 0x4dbcc2
push ebp
push eax
call dword [ebp + 0xc]
add esp, 8
mov dword [ebp + 0x10c], edi
mov dword [ebp + 0x110], esi
mov dword [ebp + 0x11428], 0
jmp 0x4dc0fd
push ebp
push edi
mov esi, eax
call dword [ebp + 0xc]
add esp, 8
mov dword [ebp + 0x11428], 0
push str.Unable_to_send_KEXINIT_packet_to_remote_host
push esi
jmp 0x4dc0c8
mov eax, dword [0x8c0154]
xor edi, edi
test eax, eax
je 0x4dbd2c
mov esi, 0x8c0158
nop dword [eax]
mov eax, dword [eax]
test eax, eax
je 0x4dbd2b
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add edi, eax
inc edi
mov eax, dword [esi]
add esi, 4
test eax, eax
jne 0x4dbd10
dec edi
mov dword [esp + 0x20], edi
mov eax, dword [ebp + 0x3c]
test eax, eax
je 0x4dbe99
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov esi, eax
mov dword [esp + 4], esi
mov eax, dword [ebp + 0x130]
test eax, eax
je 0x4dbee1
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov esi, eax
mov dword [esp + 8], esi
mov eax, dword [ebp + 0xf8]
test eax, eax
je 0x4dbf31
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov esi, eax
mov dword [esp + 0xc], esi
mov eax, dword [ebp + 0x134]
test eax, eax
je 0x4dbf81
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov esi, eax
mov dword [esp + 0x10], esi
mov eax, dword [ebp + 0xfc]
test eax, eax
je 0x4dbfd1
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov esi, eax
mov dword [esp + 0x14], esi
mov eax, dword [ebp + 0x138]
test eax, eax
je 0x4dc021
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov esi, eax
mov dword [esp + 0x18], esi
mov eax, dword [ebp + 0x100]
test eax, eax
je 0x4dc071
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov esi, eax
mov dword [esp + 0x1c], esi
mov eax, dword [ebp + 0x13c]
xor esi, esi
mov edi, 0
test eax, eax
je 0x4dbe14
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov edi, eax
mov eax, dword [ebp + 0x104]
test eax, eax
je 0x4dbe29
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov esi, eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x20]
add eax, ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
add ecx, edx
add ecx, eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
add eax, edx
add eax, dword [esp + 0x18]
add eax, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x30], edi
add ecx, edi
add eax, ecx
mov dword [esp + 0x34], esi
add esi, eax
add esi, 0x3e
push ebp
push esi
call dword [ebp + 4]
add esp, 8
test eax, eax
je 0x4dc0c1
mov edi, eax
inc eax
mov byte [edi], 0x14
push 0x10
push eax
call fcn.004d6080
add esp, 8
test eax, eax
je 0x4dc29a
push str.Unable_to_get_random_bytes_for_KEXINIT_cookie
push 0xffffffffffffffcf
jmp 0x4dc0c8
call fcn.004daa10
xor esi, esi
test eax, eax
je 0x4dbd46
mov edi, eax
mov eax, dword [eax]
test eax, eax
je 0x4dbd46
add edi, 4
xor esi, esi
nop dword [eax]
mov eax, dword [eax]
test eax, eax
je 0x4dbedb
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add esi, eax
inc esi
mov eax, dword [edi]
add edi, 4
test eax, eax
jne 0x4dbec0
dec esi
jmp 0x4dbd46
call fcn.004f5c20
xor esi, esi
test eax, eax
je 0x4dbd63
mov edi, eax
mov eax, dword [eax]
test eax, eax
je 0x4dbd63
add edi, 4
xor esi, esi
nop word cs:[eax + eax]
mov eax, dword [eax]
test eax, eax
je 0x4dbf2b
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add esi, eax
inc esi
mov eax, dword [edi]
add edi, 4
test eax, eax
jne 0x4dbf10
dec esi
jmp 0x4dbd63
call fcn.004f5c20
xor esi, esi
test eax, eax
je 0x4dbd80
mov edi, eax
mov eax, dword [eax]
test eax, eax
je 0x4dbd80
add edi, 4
xor esi, esi
nop word cs:[eax + eax]
mov eax, dword [eax]
test eax, eax
je 0x4dbf7b
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add esi, eax
inc esi
mov eax, dword [edi]
add edi, 4
test eax, eax
jne 0x4dbf60
dec esi
jmp 0x4dbd80
call fcn.004e3f70
xor esi, esi
test eax, eax
je 0x4dbd9d
mov edi, eax
mov eax, dword [eax]
test eax, eax
je 0x4dbd9d
add edi, 4
xor esi, esi
nop word cs:[eax + eax]
mov eax, dword [eax]
test eax, eax
je 0x4dbfcb
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add esi, eax
inc esi
mov eax, dword [edi]
add edi, 4
test eax, eax
jne 0x4dbfb0
dec esi
jmp 0x4dbd9d
call fcn.004e3f70
xor esi, esi
test eax, eax
je 0x4dbdba
mov edi, eax
mov eax, dword [eax]
test eax, eax
je 0x4dbdba
add edi, 4
xor esi, esi
nop word cs:[eax + eax]
mov eax, dword [eax]
test eax, eax
je 0x4dc01b
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add esi, eax
inc esi
mov eax, dword [edi]
add edi, 4
test eax, eax
jne 0x4dc000
dec esi
jmp 0x4dbdba
push ebp
call fcn.004f5bd0
add esp, 4
xor esi, esi
test eax, eax
je 0x4dbdd7
mov edi, eax
mov eax, dword [eax]
test eax, eax
je 0x4dbdd7
add edi, 4
xor esi, esi
nop word cs:[eax + eax]
mov eax, dword [eax]
test eax, eax
je 0x4dc06b
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add esi, eax
inc esi
mov eax, dword [edi]
add edi, 4
test eax, eax
jne 0x4dc050
dec esi
jmp 0x4dbdd7
push ebp
call fcn.004f5bd0
add esp, 4
xor esi, esi
test eax, eax
je 0x4dbdf4
mov edi, eax
mov eax, dword [eax]
test eax, eax
je 0x4dbdf4
add edi, 4
xor esi, esi
nop word cs:[eax + eax]
mov eax, dword [eax]
test eax, eax
je 0x4dc0bb
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add esi, eax
inc esi
mov eax, dword [edi]
add edi, 4
test eax, eax
jne 0x4dc0a0
dec esi
jmp 0x4dbdf4
push str.Unable_to_allocate_memory
push 0xfffffffffffffffa
push ebp
call fcn.004e44a0
add esp, 0xc
test eax, eax
je 0x4dc0fd
cmp eax, 0xffffffdb
je 0x4dc137
mov eax, dword [ebx + 0x208]
mov dword [ebp + 0x10c], eax
mov eax, dword [ebx + 0x20c]
mov dword [ebp + 0x110], eax
mov dword [ebx], 0
jmp 0x4dc28c
mov dword [ebx], 4
mov eax, ebx
add ebx, 0x200
lea edi, [eax + 0x204]
mov esi, eax
lea eax, [eax + 8]
push eax
push 0
push 0
push 0
push edi
push ebx
push 0x14
push ebp
call fcn.004e67b0
add esp, 0x20
test eax, eax
je 0x4dc145
cmp eax, 0xffffffdb
jne 0x4dc25c
and byte [ebp + 0x40], 0xf7
mov eax, 0xffffffdb
jmp 0x4dc9cd
mov eax, dword [ebp + 0xd4]
test eax, eax
je 0x4dc157
push ebp
push eax
call dword [ebp + 0xc]
add esp, 8
mov eax, dword [ebx]
mov dword [ebp + 0xd4], eax
mov ecx, dword [edi]
mov dword [ebp + 0xd8], ecx
cmp ecx, 0x11
jb 0x4dc24a
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], ecx
add eax, 0x11
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x60]
lea ecx, [esp + 0x80]
lea edi, [esp + 0x38]
push eax
push ecx
push edi
call fcn.004e4f10
add esp, 0xc
test eax, eax
jne 0x4dc24a
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x7c]
push eax
push ecx
push edi
call fcn.004e4f10
add esp, 0xc
test eax, eax
jne 0x4dc24a
lea eax, [esp + 0x58]
lea ecx, [esp + 0x78]
push eax
push ecx
push edi
call fcn.004e4f10
add esp, 0xc
test eax, eax
jne 0x4dc24a
lea eax, [esp + 0x54]
lea ecx, [esp + 0x74]
push eax
push ecx
push edi
call fcn.004e4f10
add esp, 0xc
test eax, eax
jne 0x4dc24a
lea eax, [esp + 0x48]
lea ecx, [esp + 0x68]
push eax
push ecx
push edi
call fcn.004e4f10
add esp, 0xc
test eax, eax
jne 0x4dc24a
lea eax, [esp + 0x44]
lea ecx, [esp + 0x64]
push eax
push ecx
push edi
call fcn.004e4f10
add esp, 0xc
test eax, eax
jne 0x4dc24a
lea eax, [esp + 0x50]
lea ecx, [esp + 0x70]
push eax
push ecx
push edi
call fcn.004e4f10
add esp, 0xc
test eax, eax
jne 0x4dc24a
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x6c]
push eax
push ecx
push edi
call fcn.004e4f10
add esp, 0xc
test eax, eax
je 0x4dc866
mov ebx, esi
mov dword [esi], 5
mov eax, 0xfffffffb
jmp 0x4dc983
mov eax, dword [ebp + 0x10c]
test eax, eax
je 0x4dc26e
push ebp
push eax
call dword [ebp + 0xc]
add esp, 8
mov eax, dword [esi + 0x208]
mov dword [ebp + 0x10c], eax
mov eax, dword [esi + 0x20c]
mov dword [ebp + 0x110], eax
mov dword [esi], 0
and byte [ebp + 0x40], 0xf6
mov eax, 0xffffffff
jmp 0x4dc9cd
mov dword [esp + 0x24], esi
lea eax, [edi + 0x11]
mov ecx, dword [ebp + 0x38]
mov dword [esp + 0x28], ecx
mov esi, dword [esp + 0x20]
push esi
mov dword [esp + 4], eax
push eax
call fcn.004e45f0
add esp, 8
cmp dword [esp + 0x28], 0
mov dword [esp + 0x2c], edi
je 0x4dc2e0
lea eax, [edi + 0x15]
push esi
push dword [ebp + 0x38]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
lea eax, [edi + esi]
add eax, 0x15
mov dword [esp], eax
jmp 0x4dc33f
mov eax, dword [0x8c0154]
test eax, eax
je 0x4dc337
mov esi, edi
add esi, 0x15
mov ebp, 0x8c0158
mov ebx, dword [eax]
test ebx, ebx
je 0x4dc320
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov edi, eax
push eax
push ebx
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [esi + edi], 0x2c
add esi, edi
inc esi
mov eax, dword [ebp]
add ebp, 4
test eax, eax
jne 0x4dc2f3
mov eax, dword [esp + 0x20]
add eax, 4
mov ebp, dword [esp + 0x98]
mov ebx, dword [esp + 0xa0]
jmp 0x4dc33c
mov eax, 4
add dword [esp], eax
mov esi, dword [esp + 4]
cmp dword [ebp + 0x3c], 0
je 0x4dc371
push esi
mov edi, dword [esp + 4]
push edi
call fcn.004e45f0
add esp, 8
lea eax, [edi + 4]
push esi
push dword [ebp + 0x3c]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
add edi, esi
add edi, 4
mov dword [esp], edi
jmp 0x4dc3e1
call fcn.004daa10
mov ebx, eax
push esi
push dword [esp + 4]
call fcn.004e45f0
add esp, 8
mov ecx, 4
test ebx, ebx
je 0x4dc3d7
mov eax, dword [ebx]
test eax, eax
je 0x4dc3d7
mov ecx, dword [esp]
lea esi, [ecx + 4]
add ebx, 4
mov ebp, dword [eax]
test ebp, ebp
je 0x4dc3c9
push ebp
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov edi, eax
push eax
push ebp
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [esi + edi], 0x2c
add esi, edi
inc esi
mov eax, dword [ebx]
add ebx, 4
test eax, eax
jne 0x4dc39d
mov ecx, dword [esp + 4]
add ecx, 4
mov ebp, dword [esp + 0x98]
add dword [esp], ecx
mov ebx, dword [esp + 0xa0]
cmp dword [ebp + 0x130], 0
je 0x4dc419
mov esi, dword [esp + 8]
push esi
mov edi, dword [esp + 4]
push edi
call fcn.004e45f0
add esp, 8
lea eax, [edi + 4]
push esi
push dword [ebp + 0x130]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
add edi, esi
add edi, 4
mov dword [esp], edi
jmp 0x4dc48c
call fcn.004f5c20
mov ebx, eax
push dword [esp + 8]
push dword [esp + 4]
call fcn.004e45f0
add esp, 8
mov ecx, 4
test ebx, ebx
je 0x4dc482
mov eax, dword [ebx]
test eax, eax
je 0x4dc482
mov ecx, dword [esp]
lea esi, [ecx + 4]
add ebx, 4
mov ebp, dword [eax]
test ebp, ebp
je 0x4dc474
push ebp
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov edi, eax
push eax
push ebp
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [esi + edi], 0x2c
add esi, edi
inc esi
mov eax, dword [ebx]
add ebx, 4
test eax, eax
jne 0x4dc448
mov ecx, dword [esp + 8]
add ecx, 4
mov ebp, dword [esp + 0x98]
add dword [esp], ecx
mov ebx, dword [esp + 0xa0]
cmp dword [ebp + 0xf8], 0
je 0x4dc4c4
mov esi, dword [esp + 0xc]
push esi
mov edi, dword [esp + 4]
push edi
call fcn.004e45f0
add esp, 8
lea eax, [edi + 4]
push esi
push dword [ebp + 0xf8]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
add edi, esi
add edi, 4
mov dword [esp], edi
jmp 0x4dc537
call fcn.004f5c20
mov edi, eax
push dword [esp + 0xc]
push dword [esp + 4]
call fcn.004e45f0
add esp, 8
mov ecx, 4
test edi, edi
je 0x4dc534
mov eax, dword [edi]
test eax, eax
je 0x4dc534
mov ecx, dword [esp]
lea esi, [ecx + 4]
add edi, 4
mov ebp, dword [eax]
test ebp, ebp
je 0x4dc51f
push ebp
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ebx, eax
push eax
push ebp
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [esi + ebx], 0x2c
add esi, ebx
inc esi
mov eax, dword [edi]
add edi, 4
test eax, eax
jne 0x4dc4f3
mov ecx, dword [esp + 0xc]
add ecx, 4
mov ebp, dword [esp + 0x98]
mov ebx, dword [esp + 0xa0]
add dword [esp], ecx
cmp dword [ebp + 0x134], 0
je 0x4dc56f
mov esi, dword [esp + 0x10]
push esi
mov edi, dword [esp + 4]
push edi
call fcn.004e45f0
add esp, 8
lea eax, [edi + 4]
push esi
push dword [ebp + 0x134]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
add edi, esi
add edi, 4
mov dword [esp], edi
jmp 0x4dc5e2
call fcn.004e3f70
mov edi, eax
push dword [esp + 0x10]
push dword [esp + 4]
call fcn.004e45f0
add esp, 8
mov ecx, 4
test edi, edi
je 0x4dc5df
mov eax, dword [edi]
test eax, eax
je 0x4dc5df
mov ecx, dword [esp]
lea esi, [ecx + 4]
add edi, 4
mov ebp, dword [eax]
test ebp, ebp
je 0x4dc5ca
push ebp
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ebx, eax
push eax
push ebp
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [esi + ebx], 0x2c
add esi, ebx
inc esi
mov eax, dword [edi]
add edi, 4
test eax, eax
jne 0x4dc59e
mov ecx, dword [esp + 0x10]
add ecx, 4
mov ebp, dword [esp + 0x98]
mov ebx, dword [esp + 0xa0]
add dword [esp], ecx
cmp dword [ebp + 0xfc], 0
je 0x4dc617
mov esi, dword [esp + 0x14]
push esi
mov edi, dword [esp + 4]
push edi
call fcn.004e45f0
add esp, 8
lea eax, [edi + 4]
push esi
push dword [ebp + 0xfc]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
add esi, edi
add esi, 4
jmp 0x4dc68a
call fcn.004e3f70
mov edi, eax
push dword [esp + 0x14]
mov esi, dword [esp + 4]
push esi
call fcn.004e45f0
add esp, 8
mov ecx, 4
test edi, edi
je 0x4dc688
mov eax, dword [edi]
test eax, eax
je 0x4dc688
add esi, 4
add edi, 4
mov ebp, dword [eax]
test ebp, ebp
je 0x4dc670
push ebp
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ebx, eax
push eax
push ebp
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [esi + ebx], 0x2c
add esi, ebx
inc esi
mov eax, dword [edi]
add edi, 4
test eax, eax
jne 0x4dc644
mov ecx, dword [esp + 0x14]
add ecx, 4
mov ebp, dword [esp + 0x98]
mov ebx, dword [esp + 0xa0]
mov esi, dword [esp]
add esi, ecx
cmp dword [ebp + 0x138], 0
je 0x4dc6bd
mov edi, esi
mov esi, dword [esp + 0x18]
push esi
push edi
call fcn.004e45f0
add esp, 8
lea eax, [edi + 4]
push esi
push dword [ebp + 0x138]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
add esi, edi
add esi, 4
jmp 0x4dc733
push ebp
call fcn.004f5bd0
add esp, 4
mov edi, eax
push dword [esp + 0x18]
push esi
call fcn.004e45f0
add esp, 8
mov ecx, 4
test edi, edi
je 0x4dc731
mov eax, dword [edi]
test eax, eax
je 0x4dc731
mov dword [esp], esi
add esi, 4
add edi, 4
mov ebp, dword [eax]
test ebp, ebp
je 0x4dc719
push ebp
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ebx, eax
push eax
push ebp
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [esi + ebx], 0x2c
add esi, ebx
inc esi
mov eax, dword [edi]
add edi, 4
test eax, eax
jne 0x4dc6ed
mov ecx, dword [esp + 0x18]
add ecx, 4
mov ebp, dword [esp + 0x98]
mov ebx, dword [esp + 0xa0]
mov esi, dword [esp]
add esi, ecx
cmp dword [ebp + 0x100], 0
je 0x4dc764
mov edi, dword [esp + 0x1c]
push edi
push esi
call fcn.004e45f0
add esp, 8
lea eax, [esi + 4]
push edi
push dword [ebp + 0x100]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
add edi, esi
add edi, 4
jmp 0x4dc7dc
push ebp
call fcn.004f5bd0
add esp, 4
mov edi, eax
push dword [esp + 0x1c]
push esi
call fcn.004e45f0
add esp, 8
mov ecx, 4
test edi, edi
je 0x4dc7d8
mov eax, dword [edi]
test eax, eax
je 0x4dc7d8
mov dword [esp], esi
add esi, 4
add edi, 4
mov ebp, dword [eax]
test ebp, ebp
je 0x4dc7c0
push ebp
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ebx, eax
push eax
push ebp
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [esi + ebx], 0x2c
add esi, ebx
inc esi
mov eax, dword [edi]
add edi, 4
test eax, eax
jne 0x4dc794
mov ecx, dword [esp + 0x1c]
add ecx, 4
mov ebp, dword [esp + 0x98]
mov ebx, dword [esp + 0xa0]
mov esi, dword [esp]
add esi, ecx
mov edi, esi
mov eax, dword [ebp + 0x13c]
mov dword [esp], eax
mov esi, dword [esp + 0x30]
push esi
push edi
call fcn.004e45f0
add esp, 8
add edi, 4
cmp dword [esp], 0
je 0x4dc80e
push esi
push dword [ebp + 0x13c]
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
add edi, esi
mov eax, dword [ebp + 0x104]
mov dword [esp], eax
mov esi, dword [esp + 0x34]
push esi
push edi
call fcn.004e45f0
add esp, 8
add edi, 4
cmp dword [esp], 0
je 0x4dc840
push esi
push dword [ebp + 0x104]
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
add edi, esi
mov esi, dword [esp + 0x24]
mov byte [edi], 0
inc edi
push 0
push edi
call fcn.004e45f0
add esp, 8
mov dword [ebp + 0x11428], 2
mov edi, dword [esp + 0x2c]
jmp 0x4dbc73
push 1
push edi
call fcn.004e4da0
add esp, 8
test eax, eax
je 0x4dc24a
mov eax, dword [esp + 0x3c]
lea ecx, [eax + 1]
mov dword [esp + 0x3c], ecx
movzx eax, byte [eax]
mov dword [ebp + 0x54], eax
mov edx, dword [esp + 0x80]
mov ecx, ebp
push dword [esp + 0x5c]
push dword [esp + 0x80]
push dword [esp + 0x68]
call fcn.004dcd80
add esp, 0xc
test eax, eax
jne 0x4dc24a
lea edi, [ebp + 0x108]
mov edx, dword [esp + 0x78]
mov ecx, edi
push dword [esp + 0x58]
call fcn.004dcf30
add esp, 4
test eax, eax
jne 0x4dc24a
lea ebx, [ebp + 0xd0]
mov edx, dword [esp + 0x74]
mov ecx, ebx
push dword [esp + 0x54]
call fcn.004dcf30
add esp, 4
test eax, eax
jne 0x4dc24a
mov edx, dword [esp + 0x68]
mov ecx, edi
push dword [esp + 0x48]
call fcn.004dd0b0
add esp, 4
test eax, eax
jne 0x4dc24a
mov edx, dword [esp + 0x64]
mov ecx, ebx
push dword [esp + 0x44]
call fcn.004dd0b0
add esp, 4
test eax, eax
jne 0x4dc24a
mov ecx, ebp
mov edx, edi
push dword [esp + 0x50]
push dword [esp + 0x74]
call fcn.004dd250
add esp, 8
test eax, eax
jne 0x4dc24a
mov ecx, ebp
mov edx, ebx
push dword [esp + 0x4c]
push dword [esp + 0x70]
call fcn.004dd250
add esp, 8
test eax, eax
jne 0x4dc24a
mov ebx, esi
mov dword [esi], 5
mov ecx, dword [ebp + 0x50]
mov eax, 5
test ecx, ecx
sete dl
cmp eax, 5
setne dh
xor eax, eax
or dh, dl
je 0x4dbbda
mov ecx, dword [ebp + 0x10c]
test ecx, ecx
je 0x4dc9a3
push ebp
push ecx
mov esi, eax
call dword [ebp + 0xc]
mov eax, esi
add esp, 8
mov dword [ebp + 0x10c], 0
mov ecx, dword [ebp + 0xd4]
test ecx, ecx
je 0x4dc9c3
push ebp
push ecx
mov esi, eax
call dword [ebp + 0xc]
mov eax, esi
add esp, 8
mov dword [ebp + 0xd4], 0
and byte [ebp + 0x40], 0xf6
mov dword [ebx], 0
add esp, 0x84
pop esi
pop edi
pop ebx
pop ebp
ret