Function at 0x46f180
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54bbdd
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x34], edi
push 0x558d0c
call fcn.00404580
push eax
push 1
call fcn.0046eee0
push 0x558d14
call fcn.00404580
push eax
push 2
call fcn.0046eee0
push 0x558d1c
call fcn.00404580
push eax
push 3
call fcn.0046eee0
push 0x553924
call fcn.00404580
push eax
push 4
call fcn.0046eee0
push 0x558d28
call fcn.00404580
push eax
push 5
call fcn.0046eee0
push 0x558d34
call fcn.00404580
add esp, 0x40
push eax
push 6
call fcn.0046eee0
push 0x558d40
call fcn.00404580
push eax
push 7
call fcn.0046eee0
push 0x558d4c
call fcn.00404580
push eax
push 8
call fcn.0046eee0
push 0x558d58
call fcn.00404580
push eax
push 9
call fcn.0046eee0
push 0x558d64
call fcn.00404580
push eax
push 0xa
call fcn.0046eee0
push 0x558d28
call fcn.00404580
push eax
push 0xb
call fcn.0046eee0
add esp, 0x44
push 0x558d6c
call fcn.00404580
push eax
push 0xc
call fcn.0046eee0
push 0x558d74
call fcn.00404580
push eax
push 0xd
call fcn.0046eee0
push 0x558d80
call fcn.00404580
push eax
push 0xe
call fcn.0046eee0
push 0x558d8c
call fcn.00404580
push eax
push 0xf
call fcn.0046eee0
push 0x558d98
call fcn.00404580
push eax
push 0x10
call fcn.0046eee0
push 0x558da0
call fcn.00404580
add esp, 0x40
push eax
push 0x11
call fcn.0046eee0
push 0x558da8
call fcn.00404580
push eax
push 0x12
call fcn.0046eee0
push 0x558db0
call fcn.00404580
push eax
push 0x14
call fcn.0046eee0
push 0x558dbc
call fcn.00404580
push eax
push 0x15
call fcn.0046eee0
push 0x558dc4
call fcn.00404580
push eax
push 0x16
call fcn.0046eee0
push 0x558dcc
call fcn.00404580
push eax
push 0x17
call fcn.0046eee0
add esp, 0x44
push 0x558dd8
call fcn.00404580
push eax
push 0x18
call fcn.0046eee0
push 0x558de4
call fcn.00404580
push eax
push 0x19
call fcn.0046eee0
push 0x558de4
call fcn.00404580
push eax
push 0x1a
call fcn.0046eee0
push 0x558dec
call fcn.00404580
push eax
push 0x1b
call fcn.0046eee0
push 0x558df4
call fcn.00404580
push eax
push 0x1c
call fcn.0046eee0
push 0x558e00
call fcn.00404580
add esp, 0x40
push eax
push 0x1d
call fcn.0046eee0
push 0x558e0c
call fcn.00404580
push eax
push 0x1e
call fcn.0046eee0
push 0x558e18
call fcn.00404580
push eax
push 0x1f
call fcn.0046eee0
push 0x558e20
call fcn.00404580
push eax
push 0x20
call fcn.0046eee0
push 0x558e2c
call fcn.00404580
push eax
push 0x21
call fcn.0046eee0
push 0x558e34
call fcn.00404580
push eax
push 0x22
call fcn.0046eee0
add esp, 0x44
push 0x558e3c
call fcn.00404580
push eax
push 0x23
call fcn.0046eee0
push 0x5539dc
call fcn.00404580
push eax
push 0x24
call fcn.0046eee0
push 0x558e44
call fcn.00404580
push eax
push 0x25
call fcn.0046eee0
push 0x558e60
call fcn.00404580
push eax
push 0x26
call fcn.0046eee0
push 0x558d1c
call fcn.00404580
push eax
push 0x27
call fcn.0046eee0
push 0x558e68
call fcn.00404580
add esp, 0x40
push eax
push 0x28
call fcn.0046eee0
push 0x558e78
call fcn.00404580
push eax
push 0x2b
call fcn.0046eee0
push 0x558e84
call fcn.00404580
push eax
push 0x2c
call fcn.0046eee0
push 0x558e8c
call fcn.00404580
push eax
push 0x2f
call fcn.0046eee0
push 0x558e9c
call fcn.00404580
push eax
push 0x30
call fcn.0046eee0
push 0x558ea8
call fcn.00404580
push eax
push 0x32
call fcn.0046eee0
add esp, 0x44
push 0x558ebc
call fcn.00404580
push eax
push 0x33
call fcn.0046eee0
push 0x558ecc
call fcn.00404580
push eax
push 0x34
call fcn.0046eee0
push 0x558ed4
call fcn.00404580
push eax
push 0x35
call fcn.0046eee0
push 0x558ee4
call fcn.00404580
push eax
push 0x36
call fcn.0046eee0
push 0x558ef4
call fcn.00404580
push eax
push 0x39
call fcn.0046eee0
push 0x558f18
call fcn.00404580
add esp, 0x40
push eax
push 0x3c
call fcn.0046eee0
push 0x558f60
call fcn.00404580
push eax
push 0x3d
call fcn.0046eee0
push 0x558f80
call fcn.00404580
push eax
push 0x3e
call fcn.0046eee0
push 0x558f94
call fcn.00404580
push eax
push 0x3f
call fcn.0046eee0
push 0x558fa8
call fcn.00404580
push eax
push 0x40
call fcn.0046eee0
push 0x558fc8
call fcn.00404580
push eax
push 0x44
call fcn.0046eee0
add esp, 0x44
push 0x558ea8
call fcn.00404580
push eax
push 0x45
call fcn.0046eee0
push 0x559010
call fcn.00404580
push eax
push 0x46
call fcn.0046eee0
push 0x559020
call fcn.00404580
push eax
push 0x47
call fcn.0046eee0
push 0x559028
call fcn.00404580
push eax
push 0x48
call fcn.0046eee0
push 0x558ee4
call fcn.00404580
push eax
push 0x49
call fcn.0046eee0
push 0x559038
call fcn.00404580
add esp, 0x40
push eax
push 0x4a
call fcn.0046eee0
push 0x55905c
call fcn.00404580
push eax
push 0x4b
call fcn.0046eee0
push 0x559088
call fcn.00404580
push eax
push 0x4c
call fcn.0046eee0
push 0x5590a8
call fcn.00404580
push eax
push 0x4d
call fcn.0046eee0
push 0x5590c8
call fcn.00404580
push eax
push 0x4e
call fcn.0046eee0
push 0x5590dc
call fcn.00404580
push eax
push 0x4f
call fcn.0046eee0
add esp, 0x44
push 0x5590f0
call fcn.00404580
push eax
push 0x50
call fcn.0046eee0
push 0x559104
call fcn.00404580
push eax
push 0x51
call fcn.0046eee0
push 0x559118
call fcn.00404580
push eax
push 0x52
call fcn.0046eee0
push 0x55912c
call fcn.00404580
push eax
push 0x53
call fcn.0046eee0
push 0x559138
call fcn.00404580
push eax
push 0x54
call fcn.0046eee0
push 0x559168
call fcn.00404580
add esp, 0x40
push eax
push 0x55
call fcn.0046eee0
push 0x5591a0
call fcn.00404580
push eax
push 0x56
call fcn.0046eee0
push 0x5591ec
call fcn.00404580
push eax
push 0x57
call fcn.0046eee0
push 0x559210
call fcn.00404580
push eax
push 0x58
call fcn.0046eee0
push 0x559240
call fcn.00404580
push eax
push 0x59
call fcn.0046eee0
push 0x559288
call fcn.00404580
push eax
push 0x5a
call fcn.0046eee0
add esp, 0x44
push 0x559294
call fcn.00404580
push eax
push 0x5b
call fcn.0046eee0
push 0x5592a0
call fcn.00404580
push eax
push 0x5c
call fcn.0046eee0
push 0x55392c
call fcn.00404580
push eax
push 0x5d
call fcn.0046eee0
push 0x5592a8
call fcn.00404580
push eax
push 0x5f
call fcn.0046eee0
push 0x5592d4
call fcn.00404580
push eax
push 0x60
call fcn.0046eee0
push 0x5592e8
call fcn.00404580
add esp, 0x40
push eax
push 0x64
call fcn.0046eee0
push 0x55395c
call fcn.00404580
push eax
push 0x65
call fcn.0046eee0
push 0x5592f8
call fcn.00404580
push eax
push 0x66
call fcn.0046eee0
push 0x553938
call fcn.00404580
push eax
push 0x67
call fcn.0046eee0
push 0x553944
call fcn.00404580
push eax
push 0x68
call fcn.0046eee0
push 0x553968
call fcn.00404580
push eax
push 0x69
call fcn.0046eee0
add esp, 0x44
push 0x553950
call fcn.00404580
push eax
push 0x6a
call fcn.0046eee0
push 0x558e8c
call fcn.00404580
push eax
push 0x6b
call fcn.0046eee0
push 0x559304
call fcn.00404580
push eax
push 0x74
call fcn.0046eee0
push 0x559314
call fcn.00404580
push eax
push 0x8e
call fcn.0046eee0
push 0x559340
call fcn.00404580
push eax
push 0x8f
call fcn.0046eee0
push 0x559370
call fcn.00404580
add esp, 0x40
push eax
push 0x92
call fcn.0046eee0
push 0x559384
call fcn.00404580
push eax
push 0x93
call fcn.0046eee0
push 0x559398
call fcn.00404580
push eax
push 0x94
call fcn.0046eee0
push 0x5593a8
call fcn.00404580
push eax
push 0x95
call fcn.0046eee0
push 0x5593b4
call fcn.00404580
push eax
push 0x96
call fcn.0046eee0
push 0x5593dc
call fcn.00404580
push eax
push 0x97
call fcn.0046eee0
add esp, 0x44
push 0x5593e4
call fcn.00404580
push eax
push 0x98
call fcn.0046eee0
push 0x559404
call fcn.00404580
push eax
push 0x9c
call fcn.0046eee0
push 0x559430
call fcn.00404580
push eax
push 0x9f
call fcn.0046eee0
push 0x55944c
call fcn.00404580
push eax
push 0xa0
call fcn.0046eee0
push 0x559464
call fcn.00404580
push eax
push 0xa1
call fcn.0046eee0
push 0x559494
call fcn.00404580
add esp, 0x40
push eax
push 0xa2
call fcn.0046eee0
push 0x5594b0
call fcn.00404580
push eax
push 0xa3
call fcn.0046eee0
push 0x5594e0
call fcn.00404580
push eax
push 0xa4
call fcn.0046eee0
push 0x559520
call fcn.00404580
push eax
push 0xa5
call fcn.0046eee0
push 0x559544
call fcn.00404580
push eax
push 0xa6
call fcn.0046eee0
push 0x559570
call fcn.00404580
push eax
push 0xa7
call fcn.0046eee0
add esp, 0x44
push 0x5595b0
call fcn.00404580
push eax
push 0xa8
call fcn.0046eee0
push 0x5595cc
call fcn.00404580
push eax
push 0xa9
call fcn.0046eee0
push 0x5595f0
call fcn.00404580
push eax
push 0xaa
call fcn.0046eee0
push 0x559620
call fcn.00404580
push eax
push 0xb6
call fcn.0046eee0
push 0x559648
call fcn.00404580
push eax
push 0xb7
call fcn.0046eee0
push 0x55966c
call fcn.00404580
add esp, 0x40
push eax
push 0xb8
call fcn.0046eee0
push 0x559674
call fcn.00404580
push eax
push 0xb9
call fcn.0046eee0
push 0x559688
call fcn.00404580
push eax
push 0xba
call fcn.0046eee0
push 0x559694
call fcn.00404580
push eax
push 0xbb
call fcn.0046eee0
push 0x558ebc
call fcn.00404580
push eax
push 0xbc
call fcn.0046eee0
push 0x5596a4
call fcn.00404580
push eax
push 0xbd
call fcn.0046eee0
add esp, 0x44
push 0x5596b4
call fcn.00404580
push eax
push 0xbe
call fcn.0046eee0
push 0x5596ec
call fcn.00404580
push eax
push 0xbf
call fcn.0046eee0
push 0x559730
call fcn.00404580
push eax
push 0xc0
call fcn.0046eee0
push 0x559788
call fcn.00404580
push eax
push 0xc1
call fcn.0046eee0
push 0x5597b4
call fcn.00404580
push eax
push 0xc2
call fcn.0046eee0
push 0x5597f0
call fcn.00404580
add esp, 0x40
push eax
push 0xc3
call fcn.0046eee0
push 0x559840
call fcn.00404580
push eax
push 0xc5
call fcn.0046eee0
push 0x55984c
call fcn.00404580
push eax
push 0xc6
call fcn.0046eee0
push 0x559864
call fcn.00404580
push eax
push 0xc7
call fcn.0046eee0
push 0x55987c
call fcn.00404580
push eax
push 0xc8
call fcn.0046eee0
push 0x559880
call fcn.00404580
push eax
push 0xc9
call fcn.0046eee0
add esp, 0x44
push 0x559880
call fcn.00404580
push eax
push 0xcb
call fcn.0046eee0
push 0x55989c
call fcn.00404580
push eax
push 0xcc
call fcn.0046eee0
push 0x5598b8
call fcn.00404580
push eax
push 0x12f
call fcn.0046eee0
add esp, 0x24
mov ecx, edi
call fcn.0046efa0
push 0x2c
call fcn.00523854
add esp, 4
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x46fc2f
push 0x1000
mov ecx, eax
call fcn.005220f9
mov ebx, eax
mov dword [ebp - 0x3c], eax
jmp 0x46fc34
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
push str.state.tar
mov ecx, ebx
mov dword [ebp - 4], 0xffffffff
call fcn.00522768
test eax, eax
jne 0x46fc7a
push str.Cant_open_State_Package
push str.Error
call fcn.00521c77
add esp, 8
test ebx, ebx
je 0x46fc73
mov ecx, ebx
call fcn.005221d7
push 0x2c
push ebx
call fcn.0052389d
add esp, 8
xor eax, eax
jmp 0x46fdeb
mov esi, 1
mov dword [ebp - 0x38], esi
cmp esi, 0xc8
jne 0x46fd37
mov esi, dword [ebp - 0x34]
xor edi, edi
add esi, 0x299f4
nop dword [eax]
inc edi
lea eax, [ebp - 0x30]
push edi
push 0xc8
push str.a_.4d__d.dds
push eax
call fcn.0041f000
lea eax, [ebp - 0x30]
push eax
push ebx
call fcn.0052266a
add esp, 0x18
test eax, eax
je 0x46fd20
mov ebx, dword [esi]
test ebx, ebx
je 0x46fcde
mov ecx, ebx
call fcn.0051e08a
push 0x28
push ebx
call fcn.0052389d
add esp, 8
push 0x28
mov dword [esi], 0
call fcn.00523854
add esp, 4
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x46fd0a
push 0x80
mov ecx, eax
call fcn.0051dff6
jmp 0x46fd0c
xor eax, eax
mov ebx, dword [ebp - 0x3c]
mov ecx, eax
push ebx
mov dword [ebp - 4], 0xffffffff
mov dword [esi], eax
call fcn.0051e77a
add esi, 4
cmp edi, 3
jl 0x46fca0
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x34]
jmp 0x46fdc0
push esi
lea eax, [ebp - 0x30]
push str.a_.4d.dds
push eax
call fcn.0041f000
lea eax, [ebp - 0x30]
push eax
push ebx
call fcn.0052266a
add esp, 0x14
test eax, eax
je 0x46fdc0
mov edi, dword [edi + esi*4 + 0x29544]
test edi, edi
je 0x46fd74
mov ecx, edi
call fcn.0051e08a
push 0x28
push edi
call fcn.0052389d
add esp, 8
mov edi, dword [ebp - 0x34]
push 0x28
mov dword [edi + esi*4 + 0x29544], 0
call fcn.00523854
add esp, 4
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x46fda8
push 0x80
mov ecx, eax
call fcn.0051dff6
jmp 0x46fdaa
xor eax, eax
push ebx
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [edi + esi*4 + 0x29544], eax
call fcn.0051e77a
inc esi
mov dword [ebp - 0x38], esi
cmp esi, 0x12c
jl 0x46fc82
test ebx, ebx
je 0x46fde6
mov ecx, ebx
call fcn.005221d7
push 0x2c
push ebx
call fcn.0052389d
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret