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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4865f8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x4a5294]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, edx
lea eax, [esp + 0x2c]
call fcn.00402c1e
xor edi, edi
mov dword [esp + 0x70], edi
mov esi, dword [esp + 0x2c]
push esi
call dword [sym.imp.USER32.dll_CharUpperW]
cmp dword [esp + 0x30], edi
jne 0x406dde
mov esi, 0x80070057
push dword [esp + 0x2c]
call fcn.00451709
pop ecx
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
movzx eax, word [esi]
cmp ax, 0x58
jne 0x406e0c
xor eax, eax
inc eax
lea esi, [esp + 0x2c]
call fcn.00402db2
add ebx, 0x3c
mov dword [ebx], 9
mov edx, dword [ebp + 8]
lea eax, [esp + 0x2c]
call fcn.00407654
mov esi, eax
jmp 0x406dbd
cmp ax, 0x53
jne 0x406e43
xor eax, eax
inc eax
lea esi, [esp + 0x2c]
call fcn.00402db2
cmp dword [esp + 0x30], edi
jne 0x406e2e
push dword [ebp + 8]
call fcn.00406c4c
jmp 0x406e08
mov eax, dword [ebp + 8]
cmp word [eax], di
jne 0x406db8
lea ecx, [esp + 0x2c]
mov eax, ebx
call fcn.00406b6c
jmp 0x406e08
mov ecx, 0x48b594
lea eax, [esp + 0x2c]
call fcn.004074fb
test eax, eax
jne 0x406e6c
push 3
add ebx, 4
pop eax
lea esi, [esp + 0x2c]
mov dword [ebx], 4
call fcn.00402db2
jmp 0x406dfc
lea edi, [esp + 0x14]
lea eax, [esp + 0x2c]
call fcn.00407895
mov esi, eax
push esi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x34]
call fcn.00402d2a
test esi, esi
mov byte [esp + 0x70], 1
jne 0x40704b
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x30]
push eax
push 2
pop ecx
call fcn.00402d4b
push 0x48b59c
push dword [eax]
call fcn.004028d4
push dword [esp + 0x40]
neg eax
sbb al, al
inc al
mov byte [esp + 0x1f], al
call fcn.00451709
add esp, 0xc
cmp byte [esp + 0x13], 0
je 0x406f16
push 2
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x34]
call fcn.00402d2a
mov ecx, dword [ebp + 8]
mov byte [esp + 0x70], 2
push dword [ebx + 0x48]
call fcn.004078c4
pop ecx
push dword [esp + 0x38]
mov esi, eax
call fcn.00451709
test esi, esi
pop ecx
je 0x406fd1
push dword [esp + 0x20]
call fcn.00451709
pop ecx
jmp 0x406dbd
mov esi, dword [esp + 0x2c]
push str.RSFX
push esi
call fcn.004028d4
test eax, eax
pop ecx
pop ecx
jne 0x406f3a
lea ecx, [ebx + 0x1c]
mov eax, dword [ebp + 8]
call fcn.0040782c
mov esi, eax
jmp 0x406f07
push 0x48b5b0
push esi
call fcn.004028d4
test eax, eax
pop ecx
pop ecx
jne 0x406f50
lea ecx, [ebx + 0x38]
jmp 0x406f2e
push 0x48b5b4
push esi
call fcn.004028d4
test eax, eax
pop ecx
pop ecx
jne 0x406f66
lea ecx, [ebx + 0x32]
jmp 0x406f2e
push 0x48b5bc
push esi
call fcn.004028d4
test eax, eax
pop ecx
pop ecx
jne 0x406fa7
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x13]
mov byte [esp + 0x13], 1
call fcn.0040782c
mov esi, eax
test esi, esi
jne 0x406f07
cmp byte [esp + 0x13], al
jne 0x406fd1
push dword [esp + 0x20]
call fcn.00451709
pop ecx
jmp 0x406db8
push 0x48b5c4
push esi
call fcn.004028d4
test eax, eax
pop ecx
pop ecx
jne 0x406fe2
mov eax, dword [ebp + 8]
lea ecx, [ebx + 0x34]
call fcn.0040782c
mov esi, eax
test esi, esi
jne 0x406f07
mov byte [ebx + 0x33], 1
push dword [esp + 0x20]
call fcn.00451709
pop ecx
xor esi, esi
jmp 0x406dbd
push 0x48b5cc
push esi
call fcn.004028d4
test eax, eax
pop ecx
pop ecx
jne 0x406ffb
lea ecx, [ebx + 0x35]
jmp 0x406f2e
push 0x48b5d4
push esi
call fcn.004028d4
test eax, eax
pop ecx
pop ecx
jne 0x407014
lea ecx, [ebx + 0x36]
jmp 0x406f2e
push 0x48b5dc
push esi
call fcn.004028d4
test eax, eax
pop ecx
pop ecx
jne 0x40702d
lea ecx, [ebx + 0x37]
jmp 0x406f2e
push 0x48b5e4
push esi
call fcn.004028d4
test eax, eax
pop ecx
pop ecx
jne 0x407046
lea ecx, [ebx + 0x40]
jmp 0x406f2e
and dword [esp + 0x14], 0
mov edi, dword [esp + 0x14]
cmp edi, 0x2710
jbe 0x40706b
push dword [esp + 0x20]
call fcn.00451709
pop ecx
mov esi, 0x80004005
jmp 0x406dbd
mov eax, dword [ebx + 0x44]
cmp edi, eax
jb 0x406f98
sub edi, eax
mov eax, dword [ebx + 0x10]
cmp eax, edi
mov dword [esp + 0x14], edi
jg 0x4070be
sub edi, eax
lea esi, [ebx + 8]
inc edi
lea eax, [esp + 0x44]
push eax
call fcn.00407217
push esi
lea ecx, [esp + 0x48]
mov byte [esp + 0x74], 3
call fcn.0040734f
mov byte [esp + 0x70], 1
push dword [esp + 0x58]
call fcn.00451709
pop ecx
lea eax, [esp + 0x44]
push eax
call fcn.00407263
dec edi
jne 0x407089
cmp dword [esp + 0x24], 0
mov eax, dword [ebx + 0x14]
mov ecx, dword [esp + 0x14]
mov esi, dword [eax + ecx*4]
mov dword [esp + 0x1c], esi
jne 0x407101
mov eax, dword [ebp + 8]
cmp word [eax], 8
jne 0x406f98
mov edi, dword [eax + 8]
lea eax, [esp + 0x38]
call fcn.00402c1e
lea eax, [esp + 0x38]
push eax
push esi
mov byte [esp + 0x78], 4
call fcn.00406a98
jmp 0x406ef3
lea eax, [esp + 0x20]
push eax
call fcn.0040634c
test eax, eax
pop ecx
jl 0x406f98
imul eax, eax, 0xc
xor esi, esi
mov edi, 0x4a69f0
add eax, edi
mov word [esp + 0x4c], si
mov word [esp + 0x4e], si
mov byte [esp + 0x70], 5
mov ecx, dword [eax]
cmp ecx, 4
mov dword [esp + 0x44], ecx
je 0x40718e
cmp ecx, 1
je 0x40718e
cmp ecx, 2
je 0x40718e
lea eax, [esp + 0x20]
push eax
call fcn.00406319
cmp eax, esi
pop ecx
jge 0x407161
lea ecx, [esp + 0x4c]
call fcn.0040317b
jmp 0x406f98
mov esi, dword [ebp + 8]
imul eax, eax, 0xc
add eax, edi
mov ecx, dword [eax]
mov ax, word [eax + 4]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x5c]
movsd dword es:[edi], dword [esi]
call fcn.004062a8
add esp, 0x10
test al, al
jne 0x4071fc
jmp 0x407153
mov eax, dword [eax + 8]
xor ecx, ecx
jmp 0x407198
inc ecx
inc eax
inc eax
cmp word [eax], si
jne 0x407195
push ecx
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
call fcn.00402d2a
mov ecx, dword [ebp + 8]
push eax
lea edx, [esp + 0x1c]
mov byte [esp + 0x74], 6
call fcn.00407763
pop ecx
mov byte [esp + 0x70], 5
push dword [esp + 0x38]
mov esi, eax
call fcn.00451709
test esi, esi
pop ecx
je 0x4071e2
lea ecx, [esp + 0x4c]
call fcn.0040317b
jmp 0x406f07
mov esi, dword [esp + 0x18]
push esi
lea eax, [esp + 0x50]
call fcn.00403134
mov eax, dword [esp + 0x14]
cmp eax, dword [ebx + 0x50]
ja 0x4071fc
mov dword [ebx + 0x4c], esi
push dword [esp + 0x1c]
lea ecx, [esp + 0x48]
call fcn.0040729c
lea ecx, [esp + 0x4c]
call fcn.0040317b
jmp 0x406fd1