Function at 0x4d6460
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xca0
mov eax, dword [0x5c5c30]
xor eax, ebp
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x10], 0
jne 0x4d649b
xor eax, eax
jmp 0x4d6f83
xor ecx, ecx
cmp dword [ebp + 0xc], 0
setne cl
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
jne 0x4d64cb
push str._buf___NULL_
push 0
push 0x6f
push str.write.c
push 2
call fcn.004d4350
add esp, 0x14
cmp eax, 1
jne 0x4d64cb
int3
cmp dword [ebp - 0x20], 0
jne 0x4d650a
call fcn.004dc140
mov dword [eax], 0
call fcn.004dc110
mov dword [eax], 0x16
push 0
push 0x6f
push str.write.c
push str._write_nolock
push str._buf___NULL_
call fcn.004d13a0
add esp, 0x14
or eax, 0xffffffff
jmp 0x4d6f83
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x5cc200]
mov al, byte [edx + ecx + 0x24]
shl al, 1
sar al, 1
mov byte [ebp - 5], al
movsx ecx, byte [ebp - 5]
cmp ecx, 2
je 0x4d653d
movsx edx, byte [ebp - 5]
cmp edx, 1
jne 0x4d65ac
mov eax, dword [ebp + 0x10]
and eax, 1
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x24], eax
jne 0x4d656d
push str.__cnt__1___0_
push 0
push 0x77
push str.write.c
push 2
call fcn.004d4350
add esp, 0x14
cmp eax, 1
jne 0x4d656d
int3
cmp dword [ebp - 0x24], 0
jne 0x4d65ac
call fcn.004dc140
mov dword [eax], 0
call fcn.004dc110
mov dword [eax], 0x16
push 0
push 0x77
push str.write.c
push str._write_nolock
push str.__cnt__1___0_
call fcn.004d13a0
add esp, 0x14
or eax, 0xffffffff
jmp 0x4d6f83
mov edx, dword [ebp + 8]
sar edx, 5
mov eax, dword [ebp + 8]
and eax, 0x1f
shl eax, 6
mov ecx, dword [edx*4 + 0x5cc200]
movsx edx, byte [ecx + eax + 4]
and edx, 0x20
je 0x4d65de
push 2
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.004eccf0
add esp, 0x10
mov ecx, dword [ebp + 8]
push ecx
call fcn.004ee380
add esp, 4
test eax, eax
je 0x4d6652
mov edx, dword [ebp + 8]
sar edx, 5
mov eax, dword [ebp + 8]
and eax, 0x1f
shl eax, 6
mov ecx, dword [edx*4 + 0x5cc200]
movsx edx, byte [ecx + eax + 4]
and edx, 0x80
je 0x4d6652
call fcn.004e4c70
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x6c]
xor edx, edx
cmp dword [ecx + 0x14], 0
sete dl
mov dword [ebp - 0x1c], edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
sar ecx, 5
mov edx, dword [ebp + 8]
and edx, 0x1f
shl edx, 6
mov eax, dword [ecx*4 + 0x5cc200]
mov ecx, dword [eax + edx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4d6a19
cmp dword [ebp - 0x1c], 0
je 0x4d666e
movsx edx, byte [ebp - 5]
test edx, edx
je 0x4d6a19
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp + 0x10]
jae 0x4d6a14
movsx edx, byte [ebp - 5]
test edx, edx
jne 0x4d6847
mov eax, dword [ebp - 0x30]
movsx ecx, byte [eax]
xor edx, edx
cmp ecx, 0xa
sete dl
mov dword [ebp - 0x50], edx
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x5cc200]
cmp dword [edx + ecx + 0x38], 0
je 0x4d6785
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x5cc200]
movsx eax, byte [edx + ecx + 0x34]
push eax
call fcn.004d8600
add esp, 4
test eax, eax
jne 0x4d6721
push str.isleadbyte__dbcsBuffer_fh__
push 0
push 0xb5
push str.write.c
push 2
call fcn.004d4350
add esp, 0x14
cmp eax, 1
jne 0x4d6721
int3
mov edx, dword [ebp + 8]
sar edx, 5
mov eax, dword [ebp + 8]
and eax, 0x1f
shl eax, 6
mov ecx, dword [edx*4 + 0x5cc200]
mov dl, byte [ecx + eax + 0x34]
mov byte [ebp - 0x4c], dl
mov eax, dword [ebp - 0x30]
mov cl, byte [eax]
mov byte [ebp - 0x4b], cl
mov edx, dword [ebp + 8]
sar edx, 5
mov eax, dword [ebp + 8]
and eax, 0x1f
shl eax, 6
mov ecx, dword [edx*4 + 0x5cc200]
mov dword [ecx + eax + 0x38], 0
push 2
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x40]
push eax
call fcn.004ee360
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4d6780
jmp 0x4d6a14
jmp 0x4d683c
mov ecx, dword [ebp - 0x30]
movsx edx, byte [ecx]
push edx
call fcn.004d8600
add esp, 4
test eax, eax
je 0x4d6820
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
sub ecx, eax
cmp ecx, 1
jbe 0x4d67d3
push 2
mov edx, dword [ebp - 0x30]
push edx
lea eax, [ebp - 0x40]
push eax
call fcn.004ee360
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4d67c8
jmp 0x4d6a14
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
jmp 0x4d681e
mov edx, dword [ebp + 8]
sar edx, 5
mov eax, dword [ebp + 8]
and eax, 0x1f
shl eax, 6
mov ecx, dword [edx*4 + 0x5cc200]
mov edx, dword [ebp - 0x30]
mov dl, byte [edx]
mov byte [ecx + eax + 0x34], dl
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x5cc200]
mov dword [edx + ecx + 0x38], 1
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x4d6a14
jmp 0x4d683c
push 1
mov ecx, dword [ebp - 0x30]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.004ee360
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4d683c
jmp 0x4d6a14
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
jmp 0x4d687b
movsx ecx, byte [ebp - 5]
cmp ecx, 1
je 0x4d6859
movsx edx, byte [ebp - 5]
cmp edx, 2
jne 0x4d687b
mov eax, dword [ebp - 0x30]
mov cx, word [eax]
mov word [ebp - 0x40], cx
movzx edx, word [ebp - 0x40]
xor eax, eax
cmp edx, 0xa
sete al
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x30]
add ecx, 2
mov dword [ebp - 0x30], ecx
movsx edx, byte [ebp - 5]
test edx, edx
jne 0x4d6985
push 0
push 0
push 5
lea eax, [ebp - 0x4c]
push eax
push 1
lea ecx, [ebp - 0x40]
push ecx
push 0
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x4d68b3
jmp 0x4d6a14
push 0
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
lea edx, [ebp - 0x4c]
push edx
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x5cc200]
mov eax, dword [edx + ecx]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4d6900
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0x38]
jge 0x4d68fe
jmp 0x4d6a14
jmp 0x4d690e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x4d6a14
cmp dword [ebp - 0x50], 0
je 0x4d6980
mov dword [ebp - 0x38], 1
mov byte [ebp - 0x4c], 0xd
push 0
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
lea edx, [ebp - 0x4c]
push edx
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x5cc200]
mov eax, dword [edx + ecx]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4d6972
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x38]
jge 0x4d695e
jmp 0x4d6a14
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x4d6980
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x4d6a14
jmp 0x4d6a0f
movsx ecx, byte [ebp - 5]
cmp ecx, 1
je 0x4d6997
movsx edx, byte [ebp - 5]
cmp edx, 2
jne 0x4d6a0f
mov ax, word [ebp - 0x40]
push eax
call fcn.004ee040
add esp, 4
movzx ecx, ax
movzx edx, word [ebp - 0x40]
cmp ecx, edx
jne 0x4d69ba
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x4d69c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x4d6a14
cmp dword [ebp - 0x50], 0
je 0x4d6a0f
mov dword [ebp - 0x38], 1
mov word [ebp - 0x40], 0xd
mov cx, word [ebp - 0x40]
push ecx
call fcn.004ee040
add esp, 4
movzx edx, ax
movzx eax, word [ebp - 0x40]
cmp edx, eax
jne 0x4d6a04
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
jmp 0x4d6a0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x4d6a14
jmp 0x4d668b
jmp 0x4d6eef
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x5cc200]
movsx eax, byte [edx + ecx + 4]
and eax, 0x80
je 0x4d6ea5
mov dword [ebp - 0xc], 0
movsx ecx, byte [ebp - 5]
test ecx, ecx
jne 0x4d6b92
mov dword [ebp - 0x45c], 0
mov dword [ebp - 0x460], 0
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x45c], edx
mov eax, dword [ebp - 0x45c]
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jae 0x4d6b8d
lea ecx, [ebp - 0x458]
mov dword [ebp - 0x460], ecx
mov edx, dword [ebp - 0x460]
lea eax, [ebp - 0x458]
sub edx, eax
cmp edx, 0x400
jae 0x4d6b1d
mov ecx, dword [ebp - 0x45c]
sub ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp + 0x10]
jae 0x4d6b1d
mov edx, dword [ebp - 0x45c]
mov al, byte [edx]
mov byte [ebp - 0x461], al
mov ecx, dword [ebp - 0x45c]
add ecx, 1
mov dword [ebp - 0x45c], ecx
movsx edx, byte [ebp - 0x461]
cmp edx, 0xa
jne 0x4d6afb
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x460]
mov byte [ecx], 0xd
mov edx, dword [ebp - 0x460]
add edx, 1
mov dword [ebp - 0x460], edx
mov eax, dword [ebp - 0x460]
mov cl, byte [ebp - 0x461]
mov byte [eax], cl
mov edx, dword [ebp - 0x460]
add edx, 1
mov dword [ebp - 0x460], edx
jmp 0x4d6a8d
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x460]
lea edx, [ebp - 0x458]
sub ecx, edx
push ecx
lea eax, [ebp - 0x458]
push eax
mov ecx, dword [ebp + 8]
sar ecx, 5
mov edx, dword [ebp + 8]
and edx, 0x1f
shl edx, 6
mov eax, dword [ecx*4 + 0x5cc200]
mov ecx, dword [eax + edx]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4d6b7d
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x460]
lea ecx, [ebp - 0x458]
sub eax, ecx
cmp dword [ebp - 0x10], eax
jge 0x4d6b7b
jmp 0x4d6b8d
jmp 0x4d6b88
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x4d6b8d
jmp 0x4d6a6f
jmp 0x4d6ea3
movsx edx, byte [ebp - 5]
cmp edx, 2
jne 0x4d6cde
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x87c], eax
mov dword [ebp - 0x874], 0
mov ecx, dword [ebp - 0x87c]
sub ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp + 0x10]
jae 0x4d6cd9
lea edx, [ebp - 0x870]
mov dword [ebp - 0x874], edx
mov eax, dword [ebp - 0x874]
lea ecx, [ebp - 0x870]
sub eax, ecx
cmp eax, 0x3ff
jae 0x4d6c69
mov edx, dword [ebp - 0x87c]
sub edx, dword [ebp + 0xc]
cmp edx, dword [ebp + 0x10]
jae 0x4d6c69
mov eax, dword [ebp - 0x87c]
mov cx, word [eax]
mov word [ebp - 0x878], cx
mov edx, dword [ebp - 0x87c]
add edx, 2
mov dword [ebp - 0x87c], edx
movzx eax, word [ebp - 0x878]
cmp eax, 0xa
jne 0x4d6c45
mov ecx, dword [ebp - 0x14]
add ecx, 2
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x874]
mov word [edx], 0xd
mov eax, dword [ebp - 0x874]
add eax, 2
mov dword [ebp - 0x874], eax
mov ecx, dword [ebp - 0x874]
mov dx, word [ebp - 0x878]
mov word [ecx], dx
mov eax, dword [ebp - 0x874]
add eax, 2
mov dword [ebp - 0x874], eax
jmp 0x4d6bd0
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x874]
lea eax, [ebp - 0x870]
sub edx, eax
push edx
lea ecx, [ebp - 0x870]
push ecx
mov edx, dword [ebp + 8]
sar edx, 5
mov eax, dword [ebp + 8]
and eax, 0x1f
shl eax, 6
mov ecx, dword [edx*4 + 0x5cc200]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4d6cc9
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x874]
lea edx, [ebp - 0x870]
sub ecx, edx
cmp dword [ebp - 0x10], ecx
jge 0x4d6cc7
jmp 0x4d6cd9
jmp 0x4d6cd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x4d6cd9
jmp 0x4d6bb2
jmp 0x4d6ea3
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x9e4], eax
mov dword [ebp - 0x9dc], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x9e4], ecx
mov edx, dword [ebp - 0x9e4]
sub edx, dword [ebp + 0xc]
cmp edx, dword [ebp + 0x10]
jae 0x4d6ea3
mov dword [ebp - 0xc9c], 0
lea eax, [ebp - 0x9d8]
mov dword [ebp - 0x9dc], eax
mov ecx, dword [ebp - 0x9dc]
lea edx, [ebp - 0x9d8]
sub ecx, edx
cmp ecx, 0x152
jae 0x4d6daf
mov eax, dword [ebp - 0x9e4]
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jae 0x4d6daf
mov ecx, dword [ebp - 0x9e4]
mov dx, word [ecx]
mov word [ebp - 0x9e0], dx
mov eax, dword [ebp - 0x9e4]
add eax, 2
mov dword [ebp - 0x9e4], eax
movzx ecx, word [ebp - 0x9e0]
cmp ecx, 0xa
jne 0x4d6d8b
mov edx, dword [ebp - 0x9dc]
mov word [edx], 0xd
mov eax, dword [ebp - 0x9dc]
add eax, 2
mov dword [ebp - 0x9dc], eax
mov ecx, dword [ebp - 0x9dc]
mov dx, word [ebp - 0x9e0]
mov word [ecx], dx
mov eax, dword [ebp - 0x9dc]
add eax, 2
mov dword [ebp - 0x9dc], eax
jmp 0x4d6d22
push 0
push 0
push 0x2ab
lea ecx, [ebp - 0xc98]
push ecx
mov eax, dword [ebp - 0x9dc]
lea edx, [ebp - 0x9d8]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x9d8]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0xc9c], eax
cmp dword [ebp - 0xc9c], 0
jne 0x4d6e09
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x4d6ea3
mov dword [ebp - 0xca0], 0
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc9c]
sub edx, dword [ebp - 0xca0]
push edx
mov eax, dword [ebp - 0xca0]
lea ecx, [ebp + eax - 0xc98]
push ecx
mov edx, dword [ebp + 8]
sar edx, 5
mov eax, dword [ebp + 8]
and eax, 0x1f
shl eax, 6
mov ecx, dword [edx*4 + 0x5cc200]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4d6e69
mov eax, dword [ebp - 0xca0]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0xca0], eax
jmp 0x4d6e74
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x4d6e82
mov ecx, dword [ebp - 0xc9c]
cmp ecx, dword [ebp - 0xca0]
jg 0x4d6e13
mov edx, dword [ebp - 0xc9c]
cmp edx, dword [ebp - 0xca0]
jle 0x4d6e92
jmp 0x4d6ea3
mov eax, dword [ebp - 0x9e4]
sub eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
jmp 0x4d6cfa
jmp 0x4d6eef
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
sar ecx, 5
mov edx, dword [ebp + 8]
and edx, 0x1f
shl edx, 6
mov eax, dword [ecx*4 + 0x5cc200]
mov ecx, dword [eax + edx]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4d6ee6
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
jmp 0x4d6eef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
jne 0x4d6f7d
cmp dword [ebp - 0xc], 0
je 0x4d6f2f
cmp dword [ebp - 0xc], 5
jne 0x4d6f1c
call fcn.004dc110
mov dword [eax], 9
call fcn.004dc140
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
jmp 0x4d6f28
mov edx, dword [ebp - 0xc]
push edx
call fcn.004dc060
add esp, 4
or eax, 0xffffffff
jmp 0x4d6f83
mov eax, dword [ebp + 8]
sar eax, 5
mov ecx, dword [ebp + 8]
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x5cc200]
movsx eax, byte [edx + ecx + 4]
and eax, 0x40
je 0x4d6f60
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx]
cmp edx, 0x1a
jne 0x4d6f60
xor eax, eax
jmp 0x4d6f83
call fcn.004dc110
mov dword [eax], 0x1c
call fcn.004dc140
mov dword [eax], 0
or eax, 0xffffffff
jmp 0x4d6f83
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x44]
xor ecx, ebp
call fcn.004d1610
mov esp, ebp
pop ebp
ret