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

Disassembly:
push 0xffffffffffffffff
push 0x4ef0d2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf0
mov eax, dword [0x54a2b0]
push ebx
push ebp
push esi
xor ebx, ebx
xor esi, esi
mov dword [esp + 0xf8], eax
mov dword [esp + 0x18], 0x7fffffff
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x10], esi
mov ebp, 0xf
push edi
jmp 0x46a150
push 0x19
push str.NUMBER_OF_FOUND_RESOURCES
lea ecx, [esp + 0x64]
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
call fcn.00401eb0
push 0xc
push str.GameSettings
lea ecx, [esp + 0x2c]
mov dword [esp + 0x110], ebx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00401eb0
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x110], 1
call fcn.004b7000
mov ecx, eax
call fcn.004b6f40
cmp esi, eax
mov eax, dword [esp + 0x3c]
mov edi, 0x10
setl byte [esp + 0x13]
cmp eax, edi
jb 0x46a1ce
mov edx, dword [esp + 0x28]
push edx
call fcn.004c2c15
add esp, 4
cmp dword [esp + 0x74], edi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
mov dword [esp + 0x108], 0xffffffff
jb 0x46a1f8
mov eax, dword [esp + 0x60]
push eax
call fcn.004c2c15
add esp, 4
cmp byte [esp + 0x13], bl
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
je 0x46a39d
push esi
lea ecx, [esp + 0xcc]
push 0x5035a8
push ecx
call fcn.004c2e53
add esp, 0xc
push 4
push 0x5035b8
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
call fcn.00401eb0
lea eax, [esp + 0xc8]
mov dword [esp + 0x108], 2
mov dword [esp + 0x90], ebp
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x46a267
sub eax, edx
push eax
lea edx, [esp + 0xcc]
push edx
lea ecx, [esp + 0x80]
call fcn.00401eb0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x7c]
push ecx
mov byte [esp + 0x110], 3
call fcn.00409d30
mov ecx, eax
call fcn.0040ac80
mov esi, eax
cmp dword [esp + 0x90], edi
jb 0x46a2bb
mov edx, dword [esp + 0x7c]
push edx
call fcn.004c2c15
add esp, 4
cmp dword [esp + 0x58], edi
mov dword [esp + 0x90], ebp
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
mov dword [esp + 0x108], 0xffffffff
jb 0x46a2eb
mov eax, dword [esp + 0x44]
push eax
call fcn.004c2c15
add esp, 4
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x1c]
mov edi, dword [esp + 0x110]
sub eax, edi
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
mov ecx, esi
fcomp qword [0x52cad0]
fnstsw ax
test ah, 5
jp 0x46a325
mov eax, dword [esi]
call dword [eax + 0x1c]
jmp 0x46a333
mov edx, dword [esi]
call dword [edx + 0x1c]
mov edi, eax
mov eax, dword [esp + 0x110]
sub edi, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
sub eax, dword [esp + 0x114]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
mov ecx, esi
fcomp qword [0x52cad0]
fnstsw ax
test ah, 5
jp 0x46a368
mov edx, dword [esi]
call dword [edx + 0x24]
mov ecx, dword [esp + 0x114]
jmp 0x46a376
mov eax, dword [esi]
call dword [eax + 0x24]
mov ecx, eax
mov eax, dword [esp + 0x114]
sub ecx, eax
lea eax, [ecx + edi]
cmp eax, dword [esp + 0x1c]
jge 0x46a38d
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
mov esi, eax
jmp 0x46a150
mov esi, dword [esp + 0x20]
push esi
lea edx, [esp + 0x98]
push str.FOUNDCIRCLE_d
push edx
call fcn.004c2e53
add esp, 0xc
lea eax, [esp + 0x94]
lea edx, [eax + 1]
pop edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x46a3c2
mov ecx, dword [esp + 0x114]
sub eax, edx
push eax
lea eax, [esp + 0x94]
push eax
call fcn.00401eb0
push esi
lea ecx, [esp + 0x94]
push str.FOUNDCIRCLEPATH_d
push ecx
call fcn.004c2e53
lea eax, [esp + 0x9c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x46a400
mov ecx, dword [esp + 0x118]
sub eax, edx
push eax
lea edx, [esp + 0x94]
push edx
call fcn.00401eb0
mov ecx, dword [esp + 0xfc]
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xf0]
pop ebx
call fcn.004c2e45
add esp, 0xfc
ret 0x10