Function at 0x421c50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cfa39
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x280
push ebx
mov ebx, ecx
mov dword [ebp - 0x60], ebx
mov dword [0x501efc], ebx
push esi
lea esi, [ebx + 0x30]
mov dword [ebx + 8], 0
mov byte [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push edi
mov dword [ebp - 0x5c], esi
mov byte [esi], 0
mov dword [ebp - 4], 0
lea edi, [ebx + 0x4c]
push 0
mov dword [ebx + 0x48], 0
mov ecx, edi
mov dword [ebp - 0x10], edi
push 0
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00422420
mov dword [edi], eax
mov byte [ebp - 4], 3
mov ecx, esi
push 0x28
push str.http:__dn.blackdesert.com.tw_UploadData_
mov byte [ebx + 0x54], 0
call fcn.00409400
push 0x104
lea eax, [ebp - 0x28c]
push 0
push eax
call fcn.0049edb0
push 0x104
lea eax, [ebp - 0x188]
push 0
push eax
call fcn.0049edb0
add esp, 0x18
lea eax, [ebp - 0x28c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x188]
push 0x104
push eax
call fcn.004b260c
push 0x4d5538
lea eax, [ebp - 0x188]
push 0x104
push eax
call fcn.004b260c
push str.service.ini
lea eax, [ebp - 0x188]
push 0x104
push eax
call fcn.004b260c
add esp, 0x24
lea ecx, [ebp - 0x84]
push 0
push 0
push 0
call fcn.004118d0
mov byte [ebp - 4], 4
mov ecx, 1
movzx eax, byte [ebp - 0x68]
cmp dword [ebp - 0x84], 0
push 0x4d5788
cmove eax, ecx
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x68], al
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004a7841
mov eax, dword [ebp - 0x10]
add esp, 0xc
test eax, eax
je 0x421e05
push eax
lea ecx, [ebp - 0x84]
call fcn.00414c40
push dword [ebp - 0x10]
call fcn.004b1ad9
add esp, 4
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
mov byte [ebp - 4], 5
cmp dword [ebp - 0x74], 0
je 0x421f9e
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], str.SERVICE
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x30], 0
push eax
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x2c], 0
call fcn.004185b0
mov esi, dword [ebp - 0x10]
cmp esi, dword [ebp - 0x78]
jne 0x421e64
xor edx, edx
jmp 0x421e98
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], str.TYPE
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x30], 0
push eax
lea ecx, [esi + 0x1c]
mov dword [ebp - 0x2c], 0
call fcn.004185b0
mov eax, dword [ebp - 0x10]
cmp eax, dword [esi + 0x1c]
jne 0x421e95
xor edx, edx
jmp 0x421e98
mov edx, dword [eax + 0x1c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp byte [edx], 0
jne 0x421ec1
xor ecx, ecx
jmp 0x421ecf
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421ec6
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00409400
mov byte [ebp - 4], 6
cmp dword [ebp - 0x14], 0x10
jb 0x421eee
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x421ef1
xor edx, edx
jmp 0x421f52
lea eax, [ebp - 0x28]
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x78]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x2c], 0
push eax
call fcn.004185b0
mov esi, dword [ebp - 0x10]
cmp esi, dword [ebp - 0x78]
jne 0x421f1e
xor edx, edx
jmp 0x421f52
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], str.PATCH_URL
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x30], 0
push eax
lea ecx, [esi + 0x1c]
mov dword [ebp - 0x2c], 0
call fcn.004185b0
mov eax, dword [ebp - 0x10]
cmp eax, dword [esi + 0x1c]
jne 0x421f4f
xor edx, edx
jmp 0x421f52
mov edx, dword [eax + 0x1c]
cmp byte [edx], 0
jne 0x421f5b
xor ecx, ecx
jmp 0x421f69
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421f60
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.00409400
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x421f8c
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409cd0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
push 0xf
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
push str.patcher_version
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00409400
mov byte [ebp - 4], 7
lea eax, [ebp - 0x28]
mov ebx, dword [edi]
mov ecx, edi
push eax
push dword [ebx + 4]
push ebx
call fcn.00421ba0
mov esi, 0x7fffffe
mov edx, eax
mov eax, dword [edi + 4]
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jae 0x421fff
push str.list_T__too_long
call fcn.00425465
inc eax
mov dword [edi + 4], eax
mov dword [ebx + 4], edx
mov eax, dword [edx + 4]
mov dword [eax], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x422024
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409cd0
push 0x15
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0
push str.patcher_files_version
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00409400
mov byte [ebp - 4], 8
lea eax, [ebp - 0x40]
mov ebx, dword [edi]
mov ecx, edi
push eax
push dword [ebx + 4]
push ebx
call fcn.00421ba0
mov edx, eax
mov ecx, esi
mov eax, dword [edi + 4]
sub ecx, eax
cmp ecx, 1
jae 0x422092
push str.list_T__too_long
call fcn.00425465
inc eax
mov dword [edi + 4], eax
mov dword [ebx + 4], edx
mov eax, dword [edx + 4]
mov dword [eax], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x4220b7
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00409cd0
push 0x16
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
push str.install_client_version
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00409400
mov byte [ebp - 4], 9
lea eax, [ebp - 0x28]
mov ebx, dword [edi]
mov ecx, edi
push eax
push dword [ebx + 4]
push ebx
call fcn.00421ba0
mov edx, eax
mov ecx, esi
mov eax, dword [edi + 4]
sub ecx, eax
cmp ecx, 1
jae 0x422125
push str.list_T__too_long
call fcn.00425465
inc eax
mov dword [edi + 4], eax
mov dword [ebx + 4], edx
mov eax, dword [edx + 4]
mov dword [eax], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x42214a
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409cd0
push 0xe
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0
push str.client_version
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00409400
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x40]
mov ebx, dword [edi]
mov ecx, edi
push eax
push dword [ebx + 4]
push ebx
call fcn.00421ba0
mov edx, eax
mov ecx, esi
mov eax, dword [edi + 4]
sub ecx, eax
cmp ecx, 1
jae 0x4221b8
push str.list_T__too_long
call fcn.00425465
inc eax
mov dword [edi + 4], eax
mov dword [ebx + 4], edx
mov eax, dword [edx + 4]
mov dword [eax], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x4221dd
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00409cd0
push 9
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
push str.ads_files
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00409400
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x28]
mov ebx, dword [edi]
mov ecx, edi
push eax
push dword [ebx + 4]
push ebx
call fcn.00421ba0
mov edx, eax
mov ecx, esi
mov eax, dword [edi + 4]
sub ecx, eax
cmp ecx, 1
jae 0x42224b
push str.list_T__too_long
call fcn.00425465
inc eax
mov dword [edi + 4], eax
mov dword [ebx + 4], edx
mov eax, dword [edx + 4]
mov dword [eax], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x422270
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409cd0
push 0xd
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0
push str.pad00000.meta
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00409400
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x40]
mov ebx, dword [edi]
mov ecx, edi
push eax
push dword [ebx + 4]
push ebx
call fcn.00421ba0
mov ecx, eax
mov eax, dword [edi + 4]
sub esi, eax
cmp esi, 1
jae 0x4222dc
push str.list_T__too_long
call fcn.00425465
inc eax
mov dword [edi + 4], eax
mov dword [ebx + 4], ecx
mov eax, dword [ecx + 4]
mov dword [eax], ecx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
pop ebx
cmp eax, 0x10
jb 0x422304
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00409cd0
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
mov dword [ebp - 0x2c], 0xf
cmovae eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], 0
push str.PATCH_URL
push eax
mov byte [ebp - 0x40], 0
call fcn.00414240
mov ecx, eax
call fcn.00418bd0
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x5c]
cmp ecx, eax
je 0x42234c
push 0xffffffffffffffff
push 0
push eax
call fcn.00409200
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x422365
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409cd0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x422390
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00409cd0
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x84]
call fcn.00412520
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret