Function at 0x4d7c70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6531b8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x48], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.004d3f30
push 0x685564
push edi
call fcn.00622f0d
add esp, 8
mov dword [ebp - 0x40], eax
cmp eax, ebx
jne 0x4d7d63
call fcn.00625a54
mov eax, dword [eax]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
xor ecx, ecx
mov word [ebp - 0x34], cx
mov byte [ebp - 4], 1
push ebx
push ebx
lea edx, [ebp - 0x40]
push edx
push 0x400
push eax
push ebx
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, dword [0x75dd28]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
push edi
mov edx, dword [0x75f190]
push edx
lea ecx, [ebp - 0x38]
call fcn.00402330
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x38]
cmp eax, ebx
jne 0x4d7d26
lea eax, [ebp - 0x34]
push 0x30
mov ecx, dword [0x75f1b0]
push ecx
push eax
push ebx
call fcn.00473140
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00401210
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0062023e
mov esp, ebp
pop ebp
ret 4
mov edi, 0x100
mov edx, dword [esi + 0x438]
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d7d73
sub eax, ebx
cmp eax, 0x100
jbe 0x4d7d93
mov eax, edx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d7d88
sub eax, edx
mov edi, eax
mov edx, dword [esi + 0x458]
mov eax, edx
lea ebx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d7da0
sub eax, ebx
cmp eax, edi
jbe 0x4d7dbd
mov eax, edx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d7db2
sub eax, edx
mov edi, eax
mov edx, dword [esi + 0x484]
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d7dc8
sub eax, ebx
cmp eax, edi
jbe 0x4d7deb
mov eax, edx
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d7de0
sub eax, edx
mov edi, eax
cmp dword [esi + 0x2a8], 0
je 0x4d7dfc
mov eax, dword [esi + 0x2a8]
jmp 0x4d7e02
lea eax, [esi + 0x2ac]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4d7e05
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
cmp edx, edi
jbe 0x4d7e47
cmp dword [esi + 0x2a8], 0
je 0x4d7e2c
mov eax, dword [esi + 0x2a8]
jmp 0x4d7e32
lea eax, [esi + 0x2ac]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4d7e35
sub eax, edx
sar eax, 1
lea edi, [eax + eax]
mov edx, dword [esi + 0x238]
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d7e52
sub eax, ebx
cmp eax, edi
jbe 0x4d7e6f
mov eax, edx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d7e64
sub eax, edx
mov edi, eax
mov edx, dword [esi + 0x1f8]
mov eax, edx
lea ebx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d7e80
sub eax, ebx
cmp eax, edi
jbe 0x4d7e9d
mov eax, edx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d7e92
sub eax, edx
mov edi, eax
mov edx, dword [esi + 0x218]
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d7ea8
sub eax, ebx
cmp eax, edi
jbe 0x4d7ecb
mov eax, edx
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d7ec0
sub eax, edx
mov edi, eax
mov edx, dword [esi + 0x1d8]
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d7ed6
sub eax, ebx
cmp eax, edi
jbe 0x4d7ef3
mov eax, edx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d7ee8
sub eax, edx
mov edi, eax
lea ecx, [ebp - 0x3c]
call fcn.00402510
mov byte [ebp - 4], 2
mov eax, dword [esi + 0x4c4]
push eax
push edi
push 2
push str.version_d_r_nml_ld_r_nname_s_r_n
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00402f80
add esp, 0x14
mov ecx, dword [ebp - 0x3c]
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4d7f22
sub eax, edi
mov ebx, dword [ebp - 0x40]
push ebx
push eax
push 1
push ecx
call fcn.00622dc5
mov edx, dword [esi + 0x4c0]
push edx
push str.projID_ld_r_n
lea eax, [ebp - 0x3c]
push eax
call fcn.00402f80
add esp, 0x1c
mov ecx, dword [ebp - 0x3c]
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4d7f58
sub eax, edi
push ebx
push eax
push 1
push ecx
call fcn.00622dc5
mov ecx, dword [esi + 0x4c8]
push ecx
push str.template_s_r_n
lea edx, [ebp - 0x3c]
push edx
call fcn.00402f80
add esp, 0x1c
mov ecx, dword [ebp - 0x3c]
mov eax, ecx
lea edi, [eax + 1]
jmp 0x4d7f90
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4d7f90
sub eax, edi
push ebx
push eax
push 1
push ecx
call fcn.00622dc5
mov eax, dword [esi + 0x438]
push eax
push str.startingPage_s_r_n
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00402f80
add esp, 0x1c
mov ecx, dword [ebp - 0x3c]
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4d7fc3
sub eax, edi
push ebx
push eax
push 1
push ecx
call fcn.00622dc5
xor edx, edx
cmp byte [esi + 0x448], dl
setne dl
push edx
push str.useAuthorization_d_r_n
lea eax, [ebp - 0x3c]
push eax
call fcn.00402f80
add esp, 0x1c
mov ecx, dword [ebp - 0x3c]
mov eax, ecx
lea edi, [eax + 1]
jmp 0x4d8000
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4d8000
sub eax, edi
push ebx
push eax
push 1
push ecx
call fcn.00622dc5
add esp, 0x10
cmp byte [esi + 0x448], 0
je 0x4d8089
mov ecx, dword [esi + 0x44c]
push ecx
push str.login_s_r_n
lea edx, [ebp - 0x3c]
push edx
call fcn.00402f80
add esp, 0xc
mov edx, dword [ebp - 0x3c]
mov eax, edx
lea edi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d8040
sub eax, edi
push ebx
push eax
push 1
push edx
call fcn.00622dc5
mov eax, dword [esi + 0x450]
push eax
push str.password_s_r_n
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00402f80
add esp, 0x1c
mov ecx, dword [ebp - 0x3c]
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4d8073
sub eax, edi
push ebx
push eax
push 1
push ecx
call fcn.00622dc5
add esp, 0x10
xor edx, edx
cmp byte [esi + 0x480], dl
setne dl
push edx
push str.denyLogout_d_r_n
lea eax, [ebp - 0x3c]
push eax
call fcn.00402f80
add esp, 0xc
mov edx, dword [ebp - 0x3c]
mov eax, edx
lea edi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d80b0
sub eax, edi
push ebx
push eax
push 1
push edx
call fcn.00622dc5
add esp, 0x10
cmp byte [esi + 0x480], 0
je 0x4d8106
mov ecx, dword [esi + 0x484]
push ecx
push str.logoutUrl_s_r_n
lea edx, [ebp - 0x3c]
push edx
call fcn.00402f80
add esp, 0xc
mov edx, dword [ebp - 0x3c]
mov eax, edx
lea edi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d80f0
sub eax, edi
push ebx
push eax
push 1
push edx
call fcn.00622dc5
add esp, 0x10
xor eax, eax
cmp byte [esi + 0x454], al
setne al
push eax
push str.useManualLogin_d_r_n
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00402f80
add esp, 0xc
mov edx, dword [ebp - 0x3c]
mov eax, edx
lea edi, [eax + 1]
jmp 0x4d8130
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d8130
sub eax, edi
push ebx
push eax
push 1
push edx
call fcn.00622dc5
add esp, 0x10
cmp byte [esi + 0x454], 0
je 0x4d8186
mov edx, dword [esi + 0x458]
push edx
push str.manualLoginUrl_s_r_n
lea eax, [ebp - 0x3c]
push eax
call fcn.00402f80
add esp, 0xc
mov edx, dword [ebp - 0x3c]
mov eax, edx
lea edi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d8170
sub eax, edi
push ebx
push eax
push 1
push edx
call fcn.00622dc5
add esp, 0x10
cmp dword [esi + 0x42c], 0
je 0x4d8197
mov eax, dword [esi + 0x42c]
jmp 0x4d819d
lea eax, [esi + 0x430]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4d81a0
sub eax, edx
sar eax, 1
je 0x4d8278
lea ecx, [ebp - 0x44]
call fcn.00402510
mov byte [ebp - 4], 3
cmp dword [esi + 0x42c], 0
je 0x4d81d2
mov eax, dword [esi + 0x42c]
jmp 0x4d81d8
lea eax, [esi + 0x430]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jle 0x4d8269
push edi
lea ecx, [ebp - 0x44]
call fcn.00402860
mov ebx, eax
cmp dword [esi + 0x42c], 0
je 0x4d8212
mov eax, dword [esi + 0x42c]
jmp 0x4d8218
lea eax, [esi + 0x430]
push 0
push 0
push edi
push ebx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x4d8269
push ebx
push str.tmpFolder_s_r_n
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00402f80
add esp, 0xc
mov edx, dword [ebp - 0x3c]
mov eax, edx
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d8250
sub eax, edi
mov ecx, dword [ebp - 0x40]
push ecx
push eax
push 1
push edx
call fcn.00622dc5
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00402580
mov ebx, dword [ebp - 0x40]
xor edx, edx
cmp byte [esi + 0x489], dl
setne dl
push edx
push str.isSPC_d_r_n
lea eax, [ebp - 0x3c]
push eax
call fcn.00402f80
add esp, 0xc
mov edx, dword [ebp - 0x3c]
mov eax, edx
lea edi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d82a0
sub eax, edi
push ebx
push eax
push 1
push edx
call fcn.00622dc5
mov ecx, dword [esi + 0x4ec]
push ecx
mov edx, dword [esi + 0x4e8]
push edx
mov eax, dword [esi + 0x4fc]
push eax
mov ecx, dword [esi + 0x4e4]
push ecx
mov edx, dword [esi + 0x4f8]
push edx
push str.fp_ld_r_nsp_ld_r_nfe_ld_r_nff_ld_r_nfd_ld_r_n
lea eax, [ebp - 0x3c]
push eax
call fcn.00402f80
add esp, 0x2c
mov ecx, dword [ebp - 0x3c]
mov eax, ecx
lea edi, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4d82f0
sub eax, edi
push ebx
push eax
push 1
push ecx
call fcn.00622dc5
push str._settings__r_n
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00402f80
add esp, 0x18
mov ecx, dword [ebp - 0x3c]
mov eax, ecx
lea edi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4d8320
sub eax, edi
push ebx
push eax
push 1
push ecx
call fcn.00622dc5
add esp, 0x10
push ebx
mov ecx, esi
call fcn.004d40c0
lea ecx, [esi + 8]
call fcn.005e8c20
push ebx
call fcn.00622be7
add esp, 4
cmp dword [esi + 0x42c], 0
je 0x4d8360
mov eax, dword [esi + 0x42c]
jmp 0x4d8366
lea eax, [esi + 0x430]
lea edx, [eax + 2]
xor edi, edi
jmp 0x4d8370
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4d8370
sub eax, edx
sar eax, 1
cmp eax, 3
jbe 0x4d844a
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], edi
xor edx, edx
mov word [ebp - 0x1c], dx
mov bl, 4
mov byte [ebp - 4], bl
cmp dword [esi + 0x42c], edi
je 0x4d83a9
mov eax, dword [esi + 0x42c]
jmp 0x4d83af
lea eax, [esi + 0x430]
push edi
push eax
push str._sgrprdb
lea ecx, [ebp - 0x20]
call fcn.004021c0
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], edi
xor eax, eax
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x20]
cmp eax, edi
jne 0x4d83d8
lea eax, [ebp - 0x1c]
push edi
push 0x68d6f4
push eax
push str._s__s.pdb
lea ecx, [ebp - 0x2c]
call fcn.00402330
mov eax, dword [ebp - 0x2c]
cmp eax, edi
jne 0x4d83f6
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x10]
call fcn.004f52a0
mov eax, dword [ebp - 0x20]
cmp eax, edi
jne 0x4d8409
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.004d6280
mov eax, dword [ebp - 0x20]
cmp eax, edi
jne 0x4d841b
lea eax, [ebp - 0x1c]
push eax
push 0x1439
push 0x111
mov ecx, dword [esi + 0x424]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x2c]
call fcn.00401210
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.00401210
cmp byte [esi + 0x4dc], 0
jne 0x4d8494
mov eax, dword [esi + 0x4c4]
mov edx, dword [ebp - 0x48]
push edx
push eax
mov eax, dword [esi + 0x4c0]
push eax
mov ecx, 0x75dc64
call fcn.00523040
mov ecx, dword [esi + 0x4c0]
push ecx
push 0x1418
push 0x111
mov edx, dword [esi + 0x428]
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov byte [esi + 0x4dc], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00402580
mov dword [ebp - 4], 0xffffffff
jmp 0x4d7d45