Function at 0x404030
Capabilities:
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x428bb7
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push ebp
push esi
mov esi, dword [esp + 0x130]
xor ebx, ebx
push edi
cmp esi, ebx
je 0x4047e5
mov dword [esp + 0x20], ebx
mov eax, dword [esi]
lea ecx, [esp + 0x20]
push ecx
push esi
mov dword [esp + 0x134], ebx
call dword [eax + 0x44]
mov dword [esp + 0x18], ebx
mov edx, dword [esi]
lea eax, [esp + 0x18]
push eax
push esi
mov byte [esp + 0x134], 1
call dword [edx + 0x38]
cmp eax, ebx
jge 0x404098
push 0x434c18
jmp 0x4040b4
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x30]
mov dword [esp + 0x30], ebx
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
cmp eax, ebx
jge 0x4040d4
push 0x434c04
call fcn.0040dadb
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, ebx
mov byte [esp + 0x12c], bl
je 0x4047da
jmp 0x4047d4
push 0x434bf0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x30]
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0x40], eax
jle 0x4047c5
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [esp + 0x2c], ebx
mov word [esp + 0xc4], bx
mov word [esp + 0xa4], 3
mov dword [esp + 0xac], eax
mov ebp, dword [esp + 0xc4]
lea edi, [esp + 0x2c]
push edi
mov ecx, dword [esp + 0x1c]
sub esp, 0x10
mov byte [esp + 0x140], 3
mov edi, esp
sub esp, 0x10
mov edx, dword [ecx]
mov dword [edi], ebp
mov ebp, dword [esp + 0xec]
mov dword [edi + 4], ebp
mov ebp, dword [esp + 0xf0]
mov dword [edi + 8], ebp
mov ebp, dword [esp + 0xf4]
mov dword [edi + 0xc], ebp
mov ebp, dword [esp + 0xc8]
mov edi, esp
push ecx
mov dword [edi], ebp
mov ebp, dword [esp + 0xd0]
mov dword [edi + 4], ebp
mov dword [edi + 8], eax
mov eax, dword [esp + 0xd8]
mov dword [edi + 0xc], eax
call dword [edx + 0x2c]
lea ecx, [esp + 0xa4]
mov edi, eax
push ecx
call esi
lea edx, [esp + 0xc4]
mov byte [esp + 0x12c], 1
push edx
call esi
cmp edi, ebx
jl 0x4047b0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x28], ebx
cmp eax, ebx
je 0x4041c1
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push 0x434be0
push eax
call dword [ecx]
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
push eax
mov byte [esp + 0x130], 4
call dword [ecx + 8]
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
push ecx
push 0x42db78
mov edx, dword [eax]
push eax
mov byte [esp + 0x138], 5
call dword [edx]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x34]
push ecx
push eax
mov edx, dword [eax]
mov byte [esp + 0x134], 7
call dword [edx + 0x174]
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x1c]
push ecx
push 0x42db68
mov edx, dword [eax]
push eax
call dword [edx]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], ebx
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x24]
mov ecx, dword [esp + 0x38]
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0x3c], eax
jle 0x404758
mov dword [esp + 0x10], ebx
mov word [esp + 0xe4], bx
mov word [esp + 0x104], 3
mov dword [esp + 0x10c], eax
mov ebp, dword [esp + 0xe4]
lea edi, [esp + 0x10]
push edi
mov ecx, dword [esp + 0x20]
sub esp, 0x10
mov byte [esp + 0x140], 0xa
mov edi, esp
sub esp, 0x10
mov edx, dword [ecx]
mov dword [edi], ebp
mov ebp, dword [esp + 0x10c]
mov dword [edi + 4], ebp
mov ebp, dword [esp + 0x110]
mov dword [edi + 8], ebp
mov ebp, dword [esp + 0x114]
mov dword [edi + 0xc], ebp
mov ebp, dword [esp + 0x128]
mov edi, esp
push ecx
mov dword [edi], ebp
mov ebp, dword [esp + 0x130]
mov dword [edi + 4], ebp
mov dword [edi + 8], eax
mov eax, dword [esp + 0x138]
mov dword [edi + 0xc], eax
call dword [edx + 0x2c]
lea ecx, [esp + 0x104]
mov edi, eax
push ecx
call esi
lea edx, [esp + 0xe4]
push edx
call esi
cmp edi, ebx
jl 0x4046c7
mov word [esp + 0x54], bx
mov word [esp + 0x44], bx
mov word [esp + 0x64], bx
mov word [esp + 0x74], bx
lea edx, [esp + 0x98]
lea ecx, [esp + 0x10]
push edx
push 0x434bd8
mov byte [esp + 0x134], 0xe
call fcn.00404800
cmp eax, ebx
jl 0x4046ab
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x54]
push eax
push ecx
push edx
call fcn.00404830
add esp, 0xc
cmp eax, ebx
jl 0x4046ab
lea edx, [esp + 0x88]
lea ecx, [esp + 0x10]
push edx
push str.name
call fcn.00404800
cmp eax, ebx
jl 0x4046ab
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x44]
push eax
push ecx
push edx
call fcn.00404830
add esp, 0xc
cmp eax, ebx
jl 0x4046ab
lea edx, [esp + 0x90]
lea ecx, [esp + 0x10]
push edx
push str.value
call fcn.00404800
cmp eax, ebx
jl 0x4046ab
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x64]
push eax
push ecx
push edx
call fcn.00404830
add esp, 0xc
cmp eax, ebx
jl 0x4046ab
lea edx, [esp + 0x84]
lea ecx, [esp + 0x10]
push edx
push str.type
call fcn.00404800
cmp eax, ebx
jl 0x4046ab
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x74]
push eax
push ecx
push edx
call fcn.00404830
add esp, 0xc
cmp eax, ebx
jl 0x4046ab
mov edi, dword [esp + 0x5c]
cmp edi, ebx
jne 0x404414
mov edi, str.NULL
mov eax, dword [esp + 0x4c]
cmp eax, ebx
mov ebp, eax
jne 0x404423
mov ebp, str.NULL
push 0x434ba0
lea ecx, [esp + 0x118]
mov word [esp + 0x118], bx
call fcn.00405050
push str.username
lea ecx, [esp + 0xf8]
mov byte [esp + 0x130], 0xf
mov word [esp + 0xf8], bx
call fcn.00405050
push str.nickname
lea ecx, [esp + 0xd8]
mov byte [esp + 0x130], 0x10
mov word [esp + 0xd8], bx
call fcn.00405050
push str.password
lea ecx, [esp + 0xb8]
mov byte [esp + 0x130], 0x11
mov word [esp + 0xb8], bx
call fcn.00405050
push str.reg_user_ok
push edi
mov byte [esp + 0x134], 0x12
call fcn.0040d88b
add esp, 8
mov edi, str.value
test eax, eax
jne 0x404506
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xa0]
push ecx
push 0x400
lea ecx, [esp + 0x1c]
push 1
mov dword [esp + 0x20], edi
mov edx, dword [eax]
push ecx
push 0x42dbe8
push eax
call dword [edx + 0x14]
cmp eax, ebx
jl 0x404506
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x114]
push edx
push eax
push ecx
call fcn.00404870
add esp, 0xc
push str.reg_user
push ebp
call fcn.0040d88b
add esp, 8
test eax, eax
jne 0x404560
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x8c]
push ecx
push 0x400
lea ecx, [esp + 0x1c]
push 1
mov dword [esp + 0x20], edi
mov edx, dword [eax]
push ecx
push 0x42dbe8
push eax
call dword [edx + 0x14]
cmp eax, ebx
jl 0x404560
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xf4]
push edx
push eax
push ecx
call fcn.00404870
add esp, 0xc
push str.reg_nickname
push ebp
call fcn.0040d88b
add esp, 8
test eax, eax
jne 0x4045ba
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x9c]
push ecx
push 0x400
lea ecx, [esp + 0x1c]
push 1
mov dword [esp + 0x20], edi
mov edx, dword [eax]
push ecx
push 0x42dbe8
push eax
call dword [edx + 0x14]
cmp eax, ebx
jl 0x4045ba
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xd4]
push edx
push eax
push ecx
call fcn.00404870
add esp, 0xc
push str.reg_pass
push ebp
call fcn.0040d88b
add esp, 8
test eax, eax
je 0x4045de
push str.reg_pass2
push ebp
call fcn.0040d88b
add esp, 8
test eax, eax
jne 0x404611
lea edx, [esp + 0x94]
lea ecx, [esp + 0x10]
push edx
push edi
call fcn.00404800
cmp eax, ebx
jl 0x404611
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xb4]
push eax
push ecx
push edx
call fcn.00404870
add esp, 0xc
push str.bt_reg
push ebp
call fcn.0041d486
add esp, 8
test eax, eax
jne 0x4046e9
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0x42db78
mov ecx, dword [eax]
push eax
mov byte [esp + 0x138], 0x13
call dword [ecx]
cmp eax, ebx
jge 0x40465c
mov eax, dword [esp + 0x14]
mov byte [esp + 0x12c], 0x12
cmp eax, ebx
je 0x404683
jmp 0x40467d
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 0x114]
cmp eax, ebx
mov eax, dword [esp + 0x14]
mov byte [esp + 0x12c], 0x12
jge 0x4046df
cmp eax, ebx
je 0x404683
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edx, [esp + 0xb4]
push edx
call esi
lea eax, [esp + 0xd4]
push eax
call esi
lea ecx, [esp + 0xf4]
push ecx
call esi
lea edx, [esp + 0x114]
push edx
call esi
lea eax, [esp + 0x74]
push eax
call esi
lea ecx, [esp + 0x64]
push ecx
call esi
lea edx, [esp + 0x44]
push edx
call esi
lea eax, [esp + 0x54]
push eax
call esi
mov eax, dword [esp + 0x10]
mov byte [esp + 0x12c], 7
cmp eax, ebx
je 0x404743
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x404743
cmp eax, ebx
je 0x4046e9
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea eax, [esp + 0xb4]
push eax
call esi
lea ecx, [esp + 0xd4]
push ecx
call esi
lea edx, [esp + 0xf4]
push edx
call esi
lea eax, [esp + 0x114]
push eax
call esi
lea ecx, [esp + 0x74]
push ecx
call esi
lea edx, [esp + 0x64]
push edx
call esi
lea eax, [esp + 0x44]
push eax
call esi
lea ecx, [esp + 0x54]
push ecx
call esi
mov eax, dword [esp + 0x10]
mov byte [esp + 0x12c], 7
cmp eax, ebx
je 0x404743
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
inc eax
cmp eax, ecx
mov dword [esp + 0x3c], eax
jl 0x404248
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x12c], 6
cmp eax, ebx
je 0x40476e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x34]
mov byte [esp + 0x12c], 5
cmp eax, ebx
je 0x404784
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x24]
mov byte [esp + 0x12c], 4
cmp eax, ebx
je 0x40479a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x28]
mov byte [esp + 0x12c], 1
cmp eax, ebx
je 0x4047b0
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
inc eax
cmp eax, ecx
mov dword [esp + 0x40], eax
jl 0x4040f7
mov eax, dword [esp + 0x18]
mov byte [esp + 0x12c], bl
cmp eax, ebx
je 0x4047da
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x120
ret