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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5038bb
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x5475b0]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov eax, dword [0x5475b0]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x548750]
xor ebx, ebx
mov dword [esp + 0x20], eax
and dword [esp + 0x240], ebx
lea eax, [esp + 0x20]
push str.KW3_LocalGame.xml
push 0x54dbe8
push 0x511e14
push eax
call fcn.0040306c
add esp, 0x10
lea ecx, [esp + 0xb4]
call fcn.004b14f8
and dword [esp + 0x94], ebx
mov dword [esp + 0x98], 0xf
mov byte [esp + 0x84], bl
lea eax, [esp + 0x84]
mov byte [esp + 0x240], 2
mov ecx, dword [esp + 0x20]
push eax
call fcn.0046b937
cmp dword [esp + 0x9c], 0x10
lea edx, [esp + 0x88]
pop ecx
cmovae edx, dword [esp + 0x84]
lea ecx, [esp + 0x9c]
call fcn.00432589
mov byte [esp + 0x240], 3
lea eax, [esp + 0x9c]
cmp dword [esp + 0xb0], 0x10
lea ecx, [esp + 0xb4]
push 1
cmovae eax, dword [esp + 0xa0]
push eax
call fcn.004b15be
test eax, eax
je 0x46bf1e
and dword [esp + 0x34], ebx
and dword [esp + 0x30], ebx
lea eax, [esp + 0x30]
mov byte [esp + 0x240], 4
push eax
lea ecx, [esp + 0xb8]
call fcn.004b16c4
xor eax, eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x54], eax
call fcn.004b0d81
mov edi, eax
test edi, edi
jle 0x46bf0d
mov ecx, esi
call fcn.0046b676
lea ebx, [esi + 0x4bc]
mov ecx, ebx
mov dword [esp + 0x28], ebx
call fcn.0040503b
lea ecx, [esi + 0x488]
mov dword [esp + 0x6c], 1
push edi
call fcn.0046d2c5
and dword [esp + 0x24], 0
test edi, edi
jle 0x46be25
and dword [esp + 0x1c], 0
mov ebx, dword [esp + 0x24]
and dword [esp + 0x18], 0
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
mov byte [esp + 0x240], 5
push eax
push ebx
lea ecx, [esp + 0x5c]
call fcn.004b0da6
lea ecx, [esp + 0x38]
call fcn.0046b396
push 0
push 0x512ef4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x248], 6
call fcn.004b1382
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x14]
push 0x52a5f0
lea eax, [esp + 0x28]
push eax
call fcn.004b12b1
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x244], 7
call fcn.00402aef
lea ecx, [esp + 0x24]
mov byte [esp + 0x240], 6
call fcn.00403080
push 0x52a898
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x1c]
call fcn.004b12b1
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x244], 8
call fcn.00402aef
lea ecx, [esp + 0x70]
mov byte [esp + 0x240], 6
call fcn.00403080
push str.ico_md5
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x1c]
call fcn.004b12b1
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x244], 9
call fcn.00402aef
lea ecx, [esp + 0x78]
mov byte [esp + 0x240], 6
call fcn.00403080
push str.distinct_file
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x1c]
call fcn.004b12b1
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x244], 0xa
call fcn.00402aef
lea ecx, [esp + 0x64]
mov byte [esp + 0x240], 6
call fcn.00403080
push str.distinct_hash
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x1c]
call fcn.004b12b1
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x244], 0xb
call fcn.00402aef
mov byte [esp + 0x240], 6
lea ecx, [esp + 0x74]
call fcn.00403080
push str.large_file
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x1c]
call fcn.004b12b1
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x244], 0xc
call fcn.00402aef
lea ecx, [esp + 0x68]
mov byte [esp + 0x240], 6
call fcn.00403080
cmp dword [esp + 0x38], 0
jle 0x46bdf9
mov eax, dword [esp + 0x3c]
xor ecx, ecx
cmp dword [eax - 8], ecx
je 0x46bdf9
mov eax, dword [esp + 0x40]
cmp dword [eax - 8], ecx
je 0x46bdf9
cmp byte [esi + 0x438], cl
jne 0x46bd82
mov eax, dword [esp + 0x44]
cmp dword [eax - 8], ecx
je 0x46bd82
mov byte [esi + 0x438], 1
lea ecx, [esp + 0x40]
call fcn.00402cc2
push dword [esp + 0x40]
call dword [sym.imp.USER32.dll_CharLowerW]
lea ecx, [esp + 0x3c]
call fcn.00402cc2
push dword [esp + 0x3c]
call dword [sym.imp.USER32.dll_CharLowerW]
movzx eax, byte [0x54e653]
push eax
lea eax, [esp + 0x40]
push eax
push ecx
lea eax, [esp + 0x88]
push eax
lea ecx, [esi + 0x480]
call fcn.0046d754
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esi + 0x478]
call fcn.0044cf33
mov ecx, eax
call fcn.00402aef
mov ecx, dword [esi + 0x488]
lea eax, [esp + 0x38]
add ecx, dword [esp + 0x1c]
push eax
call fcn.0046bfb6
lea ecx, [esp + 0x38]
call fcn.0046bf82
lea ecx, [esp + 0x14]
mov byte [esp + 0x240], 4
call fcn.004b0e4e
add dword [esp + 0x1c], 0x1c
inc ebx
cmp ebx, edi
jl 0x46bbb9
mov ebx, dword [esp + 0x28]
and dword [esp + 0x2c], 0
and dword [esp + 0x28], 0
lea eax, [esp + 0x28]
mov byte [esp + 0x240], 0xd
push eax
push str.FilenameBlacklist
lea ecx, [esp + 0x38]
call fcn.004b0e79
test eax, eax
je 0x46bef8
xor eax, eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x54], eax
call fcn.004b0d81
mov edi, eax
xor esi, esi
test edi, edi
jle 0x46bee9
and dword [esp + 0x18], 0
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
mov byte [esp + 0x240], 0xe
push eax
push esi
lea ecx, [esp + 0x5c]
call fcn.004b0da6
push str.name
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
call fcn.004b12b1
mov byte [esp + 0x240], 0xf
mov eax, dword [esp + 0x1c]
cmp dword [eax - 8], 0
je 0x46beca
push eax
push dword [eax - 8]
mov ecx, ebx
call fcn.004029d8
lea ecx, [esp + 0x1c]
call fcn.00403080
lea ecx, [esp + 0x14]
mov byte [esp + 0x240], 0xd
call fcn.004b0e4e
inc esi
cmp esi, edi
jl 0x46be79
mov ecx, ebx
call fcn.00402cc2
push dword [ebx]
call dword [sym.imp.USER32.dll_CharLowerW]
lea ecx, [esp + 0x28]
mov byte [esp + 0x240], 4
call fcn.004b0e4e
mov ebx, dword [esp + 0x6c]
lea ecx, [esp + 0x30]
mov byte [esp + 0x240], 3
call fcn.004b0e4e
push 0
push 1
lea ecx, [esp + 0xa4]
call fcn.00406bf3
push 0
push 1
lea ecx, [esp + 0x8c]
call fcn.00406bf3
lea ecx, [esp + 0x1b8]
mov byte [esp + 0x240], 0
call dword [sym.imp.tinyxml.dll_public_virtual:_void___thiscall_TiXmlDocument::destructor_void_]
lea ecx, [esp + 0x20]
call fcn.00403080
mov eax, ebx
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.004d9731
mov esp, ebp
pop ebp
ret