Function at 0x4d9f90
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 0x4d9fc5
mov ecx, dword [ebp + 0x50]
test ecx, ecx
jne 0x4da00e
jmp 0x4da04b
mov eax, dword [esp + 0x9c]
or ecx, 9
mov dword [ebp + 0x40], ecx
test eax, eax
je 0x4d9ffc
mov dword [ebp + 0x50], 0
mov eax, dword [ebp + 0x68]
test eax, eax
je 0x4d9ff5
mov eax, dword [eax + 0x20]
test eax, eax
je 0x4d9ff5
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 0x4da04b
cmp dword [ebp + 0x68], 0
je 0x4da04b
mov dword [ebx], 5
lea eax, [ebx + 0x18]
push eax
push ebp
call dword [ecx + 4]
add esp, 8
test eax, eax
je 0x4dadc3
cmp eax, 0xffffffdb
je 0x4da577
push str.Unrecoverable_error_exchanging_keys
push 0xfffffffffffffff8
push ebp
call fcn.004e28e0
add esp, 0xc
jmp 0x4dadc3
cmp eax, 4
je 0x4da543
cmp eax, 3
je 0x4da08a
cmp eax, 2
jne 0x4dadae
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 0x4da0dc
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.004ef280
add esp, 0x14
test eax, eax
je 0x4da0f0
cmp eax, 0xffffffdb
jne 0x4da11d
mov dword [ebp + 0x1142c], edi
mov dword [ebp + 0x11430], esi
jmp 0x4da577
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x4da13c
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov edi, eax
jmp 0x4da16c
mov eax, dword [ebp + 0x10c]
test eax, eax
je 0x4da102
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 0x4da53d
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 0x4da508
mov eax, dword [0x8b51f4]
xor edi, edi
test eax, eax
je 0x4da16c
mov esi, 0x8b51f8
nop dword [eax]
mov eax, dword [eax]
test eax, eax
je 0x4da16b
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 0x4da150
dec edi
mov dword [esp + 0x20], edi
mov eax, dword [ebp + 0x3c]
test eax, eax
je 0x4da2d9
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 0x4da321
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 0x4da371
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 0x4da3c1
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 0x4da411
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 0x4da461
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 0x4da4b1
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 0x4da254
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 0x4da269
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 0x4da501
mov edi, eax
inc eax
mov byte [edi], 0x14
push 0x10
push eax
call fcn.004d44c0
add esp, 8
test eax, eax
je 0x4da6da
push str.Unable_to_get_random_bytes_for_KEXINIT_cookie
push 0xffffffffffffffcf
jmp 0x4da508
call fcn.004d8e50
xor esi, esi
test eax, eax
je 0x4da186
mov edi, eax
mov eax, dword [eax]
test eax, eax
je 0x4da186
add edi, 4
xor esi, esi
nop dword [eax]
mov eax, dword [eax]
test eax, eax
je 0x4da31b
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 0x4da300
dec esi
jmp 0x4da186
call fcn.004f4060
xor esi, esi
test eax, eax
je 0x4da1a3
mov edi, eax
mov eax, dword [eax]
test eax, eax
je 0x4da1a3
add edi, 4
xor esi, esi
nop word cs:[eax + eax]
mov eax, dword [eax]
test eax, eax
je 0x4da36b
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 0x4da350
dec esi
jmp 0x4da1a3
call fcn.004f4060
xor esi, esi
test eax, eax
je 0x4da1c0
mov edi, eax
mov eax, dword [eax]
test eax, eax
je 0x4da1c0
add edi, 4
xor esi, esi
nop word cs:[eax + eax]
mov eax, dword [eax]
test eax, eax
je 0x4da3bb
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 0x4da3a0
dec esi
jmp 0x4da1c0
call fcn.004e23b0
xor esi, esi
test eax, eax
je 0x4da1dd
mov edi, eax
mov eax, dword [eax]
test eax, eax
je 0x4da1dd
add edi, 4
xor esi, esi
nop word cs:[eax + eax]
mov eax, dword [eax]
test eax, eax
je 0x4da40b
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 0x4da3f0
dec esi
jmp 0x4da1dd
call fcn.004e23b0
xor esi, esi
test eax, eax
je 0x4da1fa
mov edi, eax
mov eax, dword [eax]
test eax, eax
je 0x4da1fa
add edi, 4
xor esi, esi
nop word cs:[eax + eax]
mov eax, dword [eax]
test eax, eax
je 0x4da45b
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 0x4da440
dec esi
jmp 0x4da1fa
push ebp
call fcn.004f4010
add esp, 4
xor esi, esi
test eax, eax
je 0x4da217
mov edi, eax
mov eax, dword [eax]
test eax, eax
je 0x4da217
add edi, 4
xor esi, esi
nop word cs:[eax + eax]
mov eax, dword [eax]
test eax, eax
je 0x4da4ab
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 0x4da490
dec esi
jmp 0x4da217
push ebp
call fcn.004f4010
add esp, 4
xor esi, esi
test eax, eax
je 0x4da234
mov edi, eax
mov eax, dword [eax]
test eax, eax
je 0x4da234
add edi, 4
xor esi, esi
nop word cs:[eax + eax]
mov eax, dword [eax]
test eax, eax
je 0x4da4fb
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 0x4da4e0
dec esi
jmp 0x4da234
push str.Unable_to_allocate_memory
push 0xfffffffffffffffa
push ebp
call fcn.004e28e0
add esp, 0xc
test eax, eax
je 0x4da53d
cmp eax, 0xffffffdb
je 0x4da577
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 0x4da6cc
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.004e4bf0
add esp, 0x20
test eax, eax
je 0x4da585
cmp eax, 0xffffffdb
jne 0x4da69c
and byte [ebp + 0x40], 0xf7
mov eax, 0xffffffdb
jmp 0x4dae0d
mov eax, dword [ebp + 0xd4]
test eax, eax
je 0x4da597
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 0x4da68a
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.004e3350
add esp, 0xc
test eax, eax
jne 0x4da68a
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x7c]
push eax
push ecx
push edi
call fcn.004e3350
add esp, 0xc
test eax, eax
jne 0x4da68a
lea eax, [esp + 0x58]
lea ecx, [esp + 0x78]
push eax
push ecx
push edi
call fcn.004e3350
add esp, 0xc
test eax, eax
jne 0x4da68a
lea eax, [esp + 0x54]
lea ecx, [esp + 0x74]
push eax
push ecx
push edi
call fcn.004e3350
add esp, 0xc
test eax, eax
jne 0x4da68a
lea eax, [esp + 0x48]
lea ecx, [esp + 0x68]
push eax
push ecx
push edi
call fcn.004e3350
add esp, 0xc
test eax, eax
jne 0x4da68a
lea eax, [esp + 0x44]
lea ecx, [esp + 0x64]
push eax
push ecx
push edi
call fcn.004e3350
add esp, 0xc
test eax, eax
jne 0x4da68a
lea eax, [esp + 0x50]
lea ecx, [esp + 0x70]
push eax
push ecx
push edi
call fcn.004e3350
add esp, 0xc
test eax, eax
jne 0x4da68a
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x6c]
push eax
push ecx
push edi
call fcn.004e3350
add esp, 0xc
test eax, eax
je 0x4daca6
mov ebx, esi
mov dword [esi], 5
mov eax, 0xfffffffb
jmp 0x4dadc3
mov eax, dword [ebp + 0x10c]
test eax, eax
je 0x4da6ae
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 0x4dae0d
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.004e2a30
add esp, 8
cmp dword [esp + 0x28], 0
mov dword [esp + 0x2c], edi
je 0x4da720
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 0x4da77f
mov eax, dword [0x8b51f4]
test eax, eax
je 0x4da777
mov esi, edi
add esi, 0x15
mov ebp, 0x8b51f8
mov ebx, dword [eax]
test ebx, ebx
je 0x4da760
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 0x4da733
mov eax, dword [esp + 0x20]
add eax, 4
mov ebp, dword [esp + 0x98]
mov ebx, dword [esp + 0xa0]
jmp 0x4da77c
mov eax, 4
add dword [esp], eax
mov esi, dword [esp + 4]
cmp dword [ebp + 0x3c], 0
je 0x4da7b1
push esi
mov edi, dword [esp + 4]
push edi
call fcn.004e2a30
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 0x4da821
call fcn.004d8e50
mov ebx, eax
push esi
push dword [esp + 4]
call fcn.004e2a30
add esp, 8
mov ecx, 4
test ebx, ebx
je 0x4da817
mov eax, dword [ebx]
test eax, eax
je 0x4da817
mov ecx, dword [esp]
lea esi, [ecx + 4]
add ebx, 4
mov ebp, dword [eax]
test ebp, ebp
je 0x4da809
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 0x4da7dd
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 0x4da859
mov esi, dword [esp + 8]
push esi
mov edi, dword [esp + 4]
push edi
call fcn.004e2a30
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 0x4da8cc
call fcn.004f4060
mov ebx, eax
push dword [esp + 8]
push dword [esp + 4]
call fcn.004e2a30
add esp, 8
mov ecx, 4
test ebx, ebx
je 0x4da8c2
mov eax, dword [ebx]
test eax, eax
je 0x4da8c2
mov ecx, dword [esp]
lea esi, [ecx + 4]
add ebx, 4
mov ebp, dword [eax]
test ebp, ebp
je 0x4da8b4
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 0x4da888
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 0x4da904
mov esi, dword [esp + 0xc]
push esi
mov edi, dword [esp + 4]
push edi
call fcn.004e2a30
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 0x4da977
call fcn.004f4060
mov edi, eax
push dword [esp + 0xc]
push dword [esp + 4]
call fcn.004e2a30
add esp, 8
mov ecx, 4
test edi, edi
je 0x4da974
mov eax, dword [edi]
test eax, eax
je 0x4da974
mov ecx, dword [esp]
lea esi, [ecx + 4]
add edi, 4
mov ebp, dword [eax]
test ebp, ebp
je 0x4da95f
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 0x4da933
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 0x4da9af
mov esi, dword [esp + 0x10]
push esi
mov edi, dword [esp + 4]
push edi
call fcn.004e2a30
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 0x4daa22
call fcn.004e23b0
mov edi, eax
push dword [esp + 0x10]
push dword [esp + 4]
call fcn.004e2a30
add esp, 8
mov ecx, 4
test edi, edi
je 0x4daa1f
mov eax, dword [edi]
test eax, eax
je 0x4daa1f
mov ecx, dword [esp]
lea esi, [ecx + 4]
add edi, 4
mov ebp, dword [eax]
test ebp, ebp
je 0x4daa0a
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 0x4da9de
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 0x4daa57
mov esi, dword [esp + 0x14]
push esi
mov edi, dword [esp + 4]
push edi
call fcn.004e2a30
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 0x4daaca
call fcn.004e23b0
mov edi, eax
push dword [esp + 0x14]
mov esi, dword [esp + 4]
push esi
call fcn.004e2a30
add esp, 8
mov ecx, 4
test edi, edi
je 0x4daac8
mov eax, dword [edi]
test eax, eax
je 0x4daac8
add esi, 4
add edi, 4
mov ebp, dword [eax]
test ebp, ebp
je 0x4daab0
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 0x4daa84
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 0x4daafd
mov edi, esi
mov esi, dword [esp + 0x18]
push esi
push edi
call fcn.004e2a30
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 0x4dab73
push ebp
call fcn.004f4010
add esp, 4
mov edi, eax
push dword [esp + 0x18]
push esi
call fcn.004e2a30
add esp, 8
mov ecx, 4
test edi, edi
je 0x4dab71
mov eax, dword [edi]
test eax, eax
je 0x4dab71
mov dword [esp], esi
add esi, 4
add edi, 4
mov ebp, dword [eax]
test ebp, ebp
je 0x4dab59
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 0x4dab2d
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 0x4daba4
mov edi, dword [esp + 0x1c]
push edi
push esi
call fcn.004e2a30
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 0x4dac1c
push ebp
call fcn.004f4010
add esp, 4
mov edi, eax
push dword [esp + 0x1c]
push esi
call fcn.004e2a30
add esp, 8
mov ecx, 4
test edi, edi
je 0x4dac18
mov eax, dword [edi]
test eax, eax
je 0x4dac18
mov dword [esp], esi
add esi, 4
add edi, 4
mov ebp, dword [eax]
test ebp, ebp
je 0x4dac00
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 0x4dabd4
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.004e2a30
add esp, 8
add edi, 4
cmp dword [esp], 0
je 0x4dac4e
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.004e2a30
add esp, 8
add edi, 4
cmp dword [esp], 0
je 0x4dac80
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.004e2a30
add esp, 8
mov dword [ebp + 0x11428], 2
mov edi, dword [esp + 0x2c]
jmp 0x4da0b3
push 1
push edi
call fcn.004e31e0
add esp, 8
test eax, eax
je 0x4da68a
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.004db1c0
add esp, 0xc
test eax, eax
jne 0x4da68a
lea edi, [ebp + 0x108]
mov edx, dword [esp + 0x78]
mov ecx, edi
push dword [esp + 0x58]
call fcn.004db370
add esp, 4
test eax, eax
jne 0x4da68a
lea ebx, [ebp + 0xd0]
mov edx, dword [esp + 0x74]
mov ecx, ebx
push dword [esp + 0x54]
call fcn.004db370
add esp, 4
test eax, eax
jne 0x4da68a
mov edx, dword [esp + 0x68]
mov ecx, edi
push dword [esp + 0x48]
call fcn.004db4f0
add esp, 4
test eax, eax
jne 0x4da68a
mov edx, dword [esp + 0x64]
mov ecx, ebx
push dword [esp + 0x44]
call fcn.004db4f0
add esp, 4
test eax, eax
jne 0x4da68a
mov ecx, ebp
mov edx, edi
push dword [esp + 0x50]
push dword [esp + 0x74]
call fcn.004db690
add esp, 8
test eax, eax
jne 0x4da68a
mov ecx, ebp
mov edx, ebx
push dword [esp + 0x4c]
push dword [esp + 0x70]
call fcn.004db690
add esp, 8
test eax, eax
jne 0x4da68a
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 0x4da01a
mov ecx, dword [ebp + 0x10c]
test ecx, ecx
je 0x4dade3
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 0x4dae03
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