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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43d7b8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x44d104]
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.00407abb
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 0x40a498
mov esi, 0x80070057
push dword [esp + 0x2c]
call fcn.0042768b
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 0x40a4c6
xor eax, eax
inc eax
lea esi, [esp + 0x2c]
call fcn.0040aae5
add ebx, 0x3c
mov dword [ebx], 9
mov edx, dword [ebp + 8]
lea eax, [esp + 0x2c]
call fcn.0040af68
mov esi, eax
jmp 0x40a477
cmp ax, 0x53
jne 0x40a4fd
xor eax, eax
inc eax
lea esi, [esp + 0x2c]
call fcn.0040aae5
cmp dword [esp + 0x30], edi
jne 0x40a4e8
push dword [ebp + 8]
call fcn.0040a306
jmp 0x40a4c2
mov eax, dword [ebp + 8]
cmp word [eax], di
jne 0x40a472
lea ecx, [esp + 0x2c]
mov eax, ebx
call fcn.0040a226
jmp 0x40a4c2
mov ecx, 0x4446f0
lea eax, [esp + 0x2c]
call fcn.0040ae0f
test eax, eax
jne 0x40a526
push 3
add ebx, 4
pop eax
lea esi, [esp + 0x2c]
mov dword [ebx], 4
call fcn.0040aae5
jmp 0x40a4b6
lea edi, [esp + 0x14]
lea eax, [esp + 0x2c]
call fcn.0040b1a9
mov esi, eax
push esi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x34]
call fcn.0040aaa8
test esi, esi
mov byte [esp + 0x70], 1
jne 0x40a705
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x30]
push eax
push 2
pop ecx
call fcn.0040aac9
push 0x4446f8
push dword [eax]
call fcn.00411694
push dword [esp + 0x40]
neg eax
sbb al, al
inc al
mov byte [esp + 0x1f], al
call fcn.0042768b
add esp, 0xc
cmp byte [esp + 0x13], 0
je 0x40a5d0
push 2
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x34]
call fcn.0040aaa8
mov ecx, dword [ebp + 8]
mov byte [esp + 0x70], 2
push dword [ebx + 0x48]
call fcn.0040b1d8
pop ecx
push dword [esp + 0x38]
mov esi, eax
call fcn.0042768b
test esi, esi
pop ecx
je 0x40a68b
push dword [esp + 0x20]
call fcn.0042768b
pop ecx
jmp 0x40a477
mov esi, dword [esp + 0x2c]
push str.RSFX
push esi
call fcn.00411694
test eax, eax
pop ecx
pop ecx
jne 0x40a5f4
lea ecx, [ebx + 0x1c]
mov eax, dword [ebp + 8]
call fcn.0040b140
mov esi, eax
jmp 0x40a5c1
push 0x44470c
push esi
call fcn.00411694
test eax, eax
pop ecx
pop ecx
jne 0x40a60a
lea ecx, [ebx + 0x38]
jmp 0x40a5e8
push 0x444710
push esi
call fcn.00411694
test eax, eax
pop ecx
pop ecx
jne 0x40a620
lea ecx, [ebx + 0x32]
jmp 0x40a5e8
push 0x444718
push esi
call fcn.00411694
test eax, eax
pop ecx
pop ecx
jne 0x40a661
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x13]
mov byte [esp + 0x13], 1
call fcn.0040b140
mov esi, eax
test esi, esi
jne 0x40a5c1
cmp byte [esp + 0x13], al
jne 0x40a68b
push dword [esp + 0x20]
call fcn.0042768b
pop ecx
jmp 0x40a472
push 0x444720
push esi
call fcn.00411694
test eax, eax
pop ecx
pop ecx
jne 0x40a69c
mov eax, dword [ebp + 8]
lea ecx, [ebx + 0x34]
call fcn.0040b140
mov esi, eax
test esi, esi
jne 0x40a5c1
mov byte [ebx + 0x33], 1
push dword [esp + 0x20]
call fcn.0042768b
pop ecx
xor esi, esi
jmp 0x40a477
push 0x444728
push esi
call fcn.00411694
test eax, eax
pop ecx
pop ecx
jne 0x40a6b5
lea ecx, [ebx + 0x35]
jmp 0x40a5e8
push 0x444730
push esi
call fcn.00411694
test eax, eax
pop ecx
pop ecx
jne 0x40a6ce
lea ecx, [ebx + 0x36]
jmp 0x40a5e8
push 0x444738
push esi
call fcn.00411694
test eax, eax
pop ecx
pop ecx
jne 0x40a6e7
lea ecx, [ebx + 0x37]
jmp 0x40a5e8
push 0x444740
push esi
call fcn.00411694
test eax, eax
pop ecx
pop ecx
jne 0x40a700
lea ecx, [ebx + 0x40]
jmp 0x40a5e8
and dword [esp + 0x14], 0
mov edi, dword [esp + 0x14]
cmp edi, 0x2710
jbe 0x40a725
push dword [esp + 0x20]
call fcn.0042768b
pop ecx
mov esi, 0x80004005
jmp 0x40a477
mov eax, dword [ebx + 0x44]
cmp edi, eax
jb 0x40a652
sub edi, eax
mov eax, dword [ebx + 0x10]
cmp eax, edi
mov dword [esp + 0x14], edi
jg 0x40a778
sub edi, eax
lea esi, [ebx + 8]
inc edi
lea eax, [esp + 0x44]
push eax
call fcn.0040a8d1
push esi
lea ecx, [esp + 0x48]
mov byte [esp + 0x74], 3
call fcn.0040ab13
mov byte [esp + 0x70], 1
push dword [esp + 0x58]
call fcn.0042768b
pop ecx
lea eax, [esp + 0x44]
push eax
call fcn.0040a91d
dec edi
jne 0x40a743
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 0x40a7bb
mov eax, dword [ebp + 8]
cmp word [eax], 8
jne 0x40a652
mov edi, dword [eax + 8]
lea eax, [esp + 0x38]
call fcn.00407abb
lea eax, [esp + 0x38]
push eax
push esi
mov byte [esp + 0x78], 4
call fcn.0040a152
jmp 0x40a5ad
lea eax, [esp + 0x20]
push eax
call fcn.00409a06
test eax, eax
pop ecx
jl 0x40a652
imul eax, eax, 0xc
xor esi, esi
mov edi, 0x44e790
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 0x40a848
cmp ecx, 1
je 0x40a848
cmp ecx, 2
je 0x40a848
lea eax, [esp + 0x20]
push eax
call fcn.004099d3
cmp eax, esi
pop ecx
jge 0x40a81b
lea ecx, [esp + 0x4c]
call fcn.00423174
jmp 0x40a652
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.00409962
add esp, 0x10
test al, al
jne 0x40a8b6
jmp 0x40a80d
mov eax, dword [eax + 8]
xor ecx, ecx
jmp 0x40a852
inc ecx
inc eax
inc eax
cmp word [eax], si
jne 0x40a84f
push ecx
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
call fcn.0040aaa8
mov ecx, dword [ebp + 8]
push eax
lea edx, [esp + 0x1c]
mov byte [esp + 0x74], 6
call fcn.0040b077
pop ecx
mov byte [esp + 0x70], 5
push dword [esp + 0x38]
mov esi, eax
call fcn.0042768b
test esi, esi
pop ecx
je 0x40a89c
lea ecx, [esp + 0x4c]
call fcn.00423174
jmp 0x40a5c1
mov esi, dword [esp + 0x18]
push esi
lea eax, [esp + 0x50]
call fcn.0042312d
mov eax, dword [esp + 0x14]
cmp eax, dword [ebx + 0x50]
ja 0x40a8b6
mov dword [ebx + 0x4c], esi
push dword [esp + 0x1c]
lea ecx, [esp + 0x48]
call fcn.0040a956
lea ecx, [esp + 0x4c]
call fcn.00423174
jmp 0x40a68b