Function at 0x404540
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446ba5
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x45c014]
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, dword [ebp + 0x10]
lea ecx, [ebp - 0x74]
push 0x4561cc
call fcn.00407930
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
mov dword [ebp - 0xf8], str.RAMapiClient.log
mov byte [ebp - 4], 1
push esi
call fcn.00407b10
lea ecx, [ebp - 0x110]
call fcn.00402810
add esp, 0x18
lea ecx, [ebp - 0x74]
push eax
call fcn.004078a0
lea ecx, [ebp - 0x110]
call fcn.00407840
push 0x4567e8
lea ecx, [ebp - 0xa4]
mov dword [ebp - 4], 0
call fcn.00407930
push 0x4567f0
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 4
call fcn.00407930
push ecx
lea ecx, [ebp - 0x5c]
call fcn.004048d0
call fcn.00404a50
push ecx
lea ecx, [ebp - 0x50]
call fcn.004048d0
call fcn.00404a50
push ecx
lea ecx, [ebp - 0x44]
call fcn.004048d0
call fcn.00404a50
lea ecx, [ebp - 0xd4]
call fcn.00407980
lea ecx, [ebp - 0xbc]
call fcn.00407980
push ecx
lea ecx, [ebp - 0x38]
call fcn.004048d0
call fcn.00404a50
lea ecx, [ebp - 0x2c]
call fcn.00407980
lea ecx, [ebp - 0xec]
call fcn.00407980
mov byte [ebp - 4], 0xe
xor esi, esi
cmp esi, 6
jge 0x404795
push ecx
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x74]
call fcn.004076e0
mov edi, eax
cmp edi, 0xffffffff
jne 0x404683
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00407810
jmp 0x4046a8
push edi
push ecx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x74]
call fcn.00407690
push eax
lea ecx, [ebp - 0x2c]
call fcn.004078a0
lea ecx, [ebp - 0x110]
call fcn.00407840
cmp esi, 5
ja case.default.0x4046b1
jmp dword [esi*4 + 0x4048b4]
sub esp, 0x18
lea eax, [ebp - 0x8c]
mov ecx, esp
mov dword [ebp - 0xf0], esp
lea ebx, [ebp - 0x5c]
push eax
call fcn.004079a0
mov byte [ebp - 4], 0xf
jmp 0x40475b
sub esp, 0x18
lea eax, [ebp - 0x8c]
mov ecx, esp
mov dword [ebp - 0xf4], esp
lea ebx, [ebp - 0x50]
push eax
call fcn.004079a0
mov byte [ebp - 4], 0x10
jmp 0x40475b
sub esp, 0x18
lea eax, [ebp - 0x8c]
mov ecx, esp
mov dword [ebp - 0xf4], esp
lea ebx, [ebp - 0x44]
push eax
call fcn.004079a0
mov byte [ebp - 4], 0x11
jmp 0x40475b
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xd4]
call fcn.00407810
jmp case.default.0x4046b1
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xbc]
call fcn.00407810
jmp case.default.0x4046b1
sub esp, 0x18
lea eax, [ebp - 0x8c]
mov ecx, esp
mov dword [ebp - 0xf4], esp
lea ebx, [ebp - 0x38]
push eax
call fcn.004079a0
mov byte [ebp - 4], 0x12
sub esp, 0x18
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.004079a0
mov ecx, ebx
mov byte [ebp - 4], 0xe
call fcn.004041f0
add esp, 0x30
lea ecx, [ebp - 0xa4]
call fcn.004077a0
add eax, edi
lea ecx, [ebp - 0x74]
push eax
push 0
call fcn.004077b0
inc esi
jmp 0x404655
sub esp, 0xc
lea eax, [ebp - 0x38]
mov ecx, esp
mov dword [ebp - 0xf4], esp
push eax
call fcn.00404900
sub esp, 0x18
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xf0], esp
mov ecx, esp
push eax
call fcn.004079a0
sub esp, 0x18
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0xd4]
mov dword [ebp - 0x114], esp
mov ecx, esp
push eax
call fcn.004079a0
sub esp, 0xc
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x44]
mov dword [ebp - 0x118], esp
mov ecx, esp
push eax
call fcn.00404900
sub esp, 0xc
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0x50]
mov dword [ebp - 0x11c], esp
mov ecx, esp
push eax
call fcn.00404900
sub esp, 0xc
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x5c]
mov ecx, esp
push eax
call fcn.00404900
mov ecx, str.RAMapiClient.log
mov byte [ebp - 4], 0xe
call fcn.00403790
add esp, 0x60
push eax
call fcn.00429619
mov esi, dword [ebp - 0x124]
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 4]
mov ecx, dword [ebp - 0xf8]
mov edx, eax
call fcn.004030d0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push eax
lea ecx, [ebp - 0x110]
call fcn.00407b10
mov byte [ebp - 4], 0x19
push 0
push 0x4562c4
lea ecx, [ebp - 0x110]
call fcn.00402790
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x110]
call fcn.00407a80
push 0xffffffffffffffff
call fcn.00429619
mov ecx, dword [ebp - 0x128]
mov eax, dword [ecx]
call dword [eax + 4]
push eax
lea ecx, [ebp - 0x110]
call fcn.00407b10
mov byte [ebp - 4], 3
jmp 0x404869