Function at 0x4bad04
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ff5bf
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x6b9a04]
xor eax, esp
mov dword [esp + 0xf0], eax
push ebx
push esi
push edi
mov eax, dword [0x6b9a04]
xor eax, esp
push eax
lea eax, [esp + 0x108]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
lea edi, [esi + 0x58]
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], edi
call fcn.004bbed8
lea ecx, [esi + 0x78]
mov dword [esp + 0x38], ecx
call fcn.0041a4a5
lea ecx, [esi + 0x98]
mov dword [esp + 0x34], ecx
call fcn.0041a4a5
lea ecx, [esi + 0xb8]
mov dword [esp + 0x2c], ecx
call fcn.00404301
push 0xf
pop esi
xor ebx, ebx
push ebx
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], esi
call fcn.004055a6
mov dword [esp + 0x110], ebx
push ebx
lea ecx, [esp + 0xcc]
mov dword [esp + 0xe4], esi
call fcn.004055a6
or dword [esp + 0x14], 0xffffffff
push ebx
lea ecx, [esp + 0x94]
mov dword [esp + 0xac], esi
call fcn.004055a6
mov byte [esp + 0x110], 2
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x3c]
push eax
lea edi, [ebp + 0xc]
call fcn.004bb3ca
mov dword [esp + 0x24], eax
cmp dword [esp + 0x50], ebx
je 0x4bb36e
push ebx
lea ecx, [esp + 0x40]
call fcn.0040b85d
cmp byte [eax], 0x3c
je 0x4bb378
push ebx
lea ecx, [esp + 0x40]
call fcn.0040b85d
cmp byte [eax], 0x7b
jne 0x4bae39
cmp dword [ebp + 0x10], ebx
jne 0x4bb378
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0xd4]
call fcn.0040529a
jmp 0x4bb36e
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.DIALOG_CONTROLS
call fcn.0040518c
sub esp, 0x1c
mov byte [esp + 0x148], 3
lea eax, [esp + 0x100]
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
call fcn.004051ae
mov byte [esp + 0x148], 2
call fcn.0054aa4a
add esp, 0x38
cmp eax, ebx
jne 0x4baec0
push ebx
lea ecx, [esp + 0x40]
call fcn.0040b85d
cmp byte [eax], 0x5b
jne 0x4baec0
push 0x5b
lea edi, [esp + 0x40]
call fcn.0054a917
pop ecx
push 0x5d
call fcn.0054a917
cmp dword [esp + 0x58], 0x10
mov eax, dword [esp + 0x44]
pop ecx
jae 0x4baeb0
lea eax, [esp + 0x40]
push eax
call fcn.005c59d8
pop ecx
mov dword [esp + 0x14], eax
jmp 0x4bb36e
push ebx
lea ecx, [esp + 0x40]
call fcn.0040b85d
cmp byte [eax], 0x5c
jne 0x4bafc4
cmp dword [esp + 0xdc], ebx
jne 0x4bb36e
lea eax, [esp + 0x10]
push eax
lea edx, [esp + 0x40]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x14], ebx
call fcn.0054891e
pop ecx
mov byte [esp + 0x110], 4
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x6c]
lea esi, [esp + 0x74]
push eax
push dword [esp + 0x70]
lea eax, [esp + 0x44]
push eax
call fcn.00406cc7
mov ecx, esi
mov byte [esp + 0x110], 5
call fcn.0054a7bf
cmp dword [esp + 0x70], 0x10
mov eax, dword [esp + 0x5c]
jae 0x4baf38
lea eax, [esp + 0x5c]
push 0x65432c
push eax
call fcn.005c6187
pop ecx
pop ecx
test eax, eax
jne 0x4baf52
mov ecx, dword [esp + 0x18]
add ecx, 4
jmp 0x4bafa2
cmp dword [esp + 0x70], 0x10
mov eax, dword [esp + 0x5c]
jae 0x4baf61
lea eax, [esp + 0x5c]
push str.Version
push eax
call fcn.005c6187
pop ecx
pop ecx
test eax, eax
jne 0x4baf7b
mov ecx, dword [esp + 0x18]
add ecx, 0x20
jmp 0x4bafa2
cmp dword [esp + 0x70], 0x10
mov eax, dword [esp + 0x5c]
jae 0x4baf8a
lea eax, [esp + 0x5c]
push str.Rev
push eax
call fcn.005c6187
pop ecx
pop ecx
test eax, eax
jne 0x4bafaf
mov ecx, dword [esp + 0x18]
add ecx, 0x3c
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x7c]
push eax
call fcn.0040529a
push ebx
push 1
lea ecx, [esp + 0x7c]
call fcn.004055c2
lea ecx, [esp + 0x58]
jmp 0x4bb35e
lea eax, [esp + 0x10]
push eax
lea edx, [esp + 0x40]
lea ecx, [esp + 0xe8]
mov dword [esp + 0x14], ebx
call fcn.0054891e
pop ecx
mov byte [esp + 0x110], 6
cmp dword [esp + 0xfc], 0x10
mov eax, dword [esp + 0xe8]
jae 0x4baffe
lea eax, [esp + 0xe8]
push eax
call fcn.005c59d8
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0xfc]
pop ecx
push eax
push dword [esp + 0xfc]
lea eax, [esp + 0x44]
push eax
lea esi, [esp + 0xb8]
call fcn.00406cc7
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x9c]
mov byte [esp + 0x11c], 7
call fcn.0040529a
push ebx
push 1
mov ecx, esi
mov byte [esp + 0x118], 6
call fcn.004055c2
lea ecx, [esp + 0x90]
call fcn.0054a7bf
cmp dword [ebp + 0x14], ebx
je 0x4bb138
push 0x641b00
lea ecx, [esp + 0x78]
call fcn.0040518c
push 0x65099c
lea ecx, [esp + 0xb0]
mov byte [esp + 0x114], 8
call fcn.0040518c
lea eax, [esp + 0x90]
push eax
lea ebx, [esp + 0x78]
lea edi, [esp + 0xb0]
mov byte [esp + 0x114], 9
call fcn.0054aba1
pop ecx
xor esi, esi
push esi
push 1
mov ecx, edi
call fcn.004055c2
push esi
push 1
mov ecx, ebx
mov byte [esp + 0x118], 6
call fcn.004055c2
push 0x653108
lea ecx, [esp + 0x78]
call fcn.0040518c
push 0x65434c
lea ecx, [esp + 0xb0]
mov byte [esp + 0x114], 0xa
call fcn.0040518c
lea eax, [esp + 0x90]
push eax
lea ebx, [esp + 0x78]
lea edi, [esp + 0xb0]
mov byte [esp + 0x114], 0xb
call fcn.0054aba1
pop ecx
push esi
push 1
mov ecx, edi
call fcn.004055c2
push esi
push 1
mov ecx, ebx
mov byte [esp + 0x118], 6
call fcn.004055c2
xor ebx, ebx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push str.DIALOG_CONTROLS
call fcn.0040518c
sub esp, 0x1c
mov byte [esp + 0x148], 0xc
lea eax, [esp + 0x100]
mov ecx, esp
mov dword [esp + 0x58], esp
push eax
call fcn.004051ae
mov byte [esp + 0x148], 6
call fcn.0054aa4a
add esp, 0x38
cmp eax, ebx
jne 0x4bb1bc
cmp dword [esp + 0x14], ebx
jl 0x4bb357
lea eax, [esp + 0x10]
push eax
push ecx
push dword [esp + 0x38]
lea ebx, [esp + 0x20]
call fcn.004bbe0a
pop ecx
mov ecx, eax
call fcn.0041a38f
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x98]
push ecx
mov ecx, eax
call fcn.0040529a
xor ebx, ebx
jmp 0x4bb357
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push str.MISC
call fcn.0040518c
sub esp, 0x1c
mov byte [esp + 0x148], 0xd
lea eax, [esp + 0x100]
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
call fcn.004051ae
mov byte [esp + 0x148], 6
call fcn.0054aa4a
add esp, 0x38
cmp eax, ebx
jne 0x4bb20a
mov ecx, dword [esp + 0x38]
jmp 0x4bb33b
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push str.MENU
call fcn.0040518c
sub esp, 0x1c
mov byte [esp + 0x148], 0xe
lea eax, [esp + 0x100]
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
call fcn.004051ae
mov byte [esp + 0x148], 6
call fcn.0054aa4a
add esp, 0x38
cmp eax, ebx
jne 0x4bb357
cmp dword [esp + 0x10], 0xffffffff
jne 0x4bb337
push 0x654360
lea ecx, [esp + 0x78]
call fcn.0040518c
push ebx
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x7c]
mov byte [esp + 0x118], 0xf
call fcn.0040b885
mov edi, eax
cmp edi, ebx
jl 0x4bb329
push edi
push ebx
lea eax, [esp + 0x98]
push eax
lea esi, [esp + 0xb8]
call fcn.00406cc7
mov byte [esp + 0x110], 0x10
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0xa4]
add eax, edi
sub ecx, eax
push ecx
push eax
lea eax, [esp + 0x98]
push eax
lea esi, [esp + 0x64]
call fcn.00406cc7
lea ecx, [esp + 0xac]
mov byte [esp + 0x110], 0x11
call fcn.0054a7bf
mov ecx, esi
call fcn.0054a7bf
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0xac]
push eax
call fcn.00403872
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x60]
push ecx
mov ecx, eax
call fcn.0040529a
push ebx
push 1
lea ecx, [esp + 0x60]
call fcn.004055c2
push ebx
push 1
lea ecx, [esp + 0xb4]
call fcn.004055c2
push ebx
push 1
lea ecx, [esp + 0x7c]
call fcn.004055c2
jmp 0x4bb357
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x10]
push eax
call fcn.0041a38f
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x98]
push ecx
mov ecx, eax
call fcn.0040529a
lea ecx, [esp + 0xe4]
push ebx
push 1
mov byte [esp + 0x118], 2
call fcn.004055c2
cmp dword [esp + 0x24], ebx
jne 0x4badd6
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x98]
call fcn.004055c2
push ebx
push esi
lea ecx, [esp + 0xd0]
call fcn.004055c2
push ebx
push esi
lea ecx, [esp + 0x44]
call fcn.004055c2
mov eax, esi
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.005c30b2
mov esp, ebp
pop ebp
ret 0x10