Function at 0x494710
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516804
mov eax, dword fs:[0]
push eax
sub esp, 0x124
push ebx
push esi
push edi
mov eax, dword [0x57b728]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x579fb0], 0
jne 0x4948cb
push 1
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x579fa8
call fcn.00485620
mov esi, eax
push 2
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [esi]
push 3
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [esi]
push 4
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 5
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 6
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 7
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 8
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 9
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0xa
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0xb
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0xc
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0xd
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0xe
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0xf
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x13
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x22
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x2d
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x2e
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x2f
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x30
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x31
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x32
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x33
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x34
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x35
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x36
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x37
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x38
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x39
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x3a
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x3b
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x3c
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x3d
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x3e
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x3f
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x40
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x41
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x45
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x4b
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x54
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x5a
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [0x579fc4]
test edx, edx
jne 0x4949e4
push 0x10
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x579fbc
call fcn.00485620
mov esi, eax
push 0x11
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [esi]
push 0x12
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [esi]
push 0x14
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x15
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x1f
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x20
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x21
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x23
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x24
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x43
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x44
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x46
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x47
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x48
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x49
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x4a
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x4c
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x4d
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x52
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x53
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x55
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x56
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x57
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x58
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x59
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x5b
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x5c
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [0x579fc4]
cmp dword [0x579fd8], 0
jne 0x494a32
push 0x16
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x579fd0
call fcn.00485620
mov esi, eax
push 0x17
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [esi]
push 0x25
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [esi]
push 0x28
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x60
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x61
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [0x579fc4]
cmp dword [0x579fec], 0
jne 0x494ae7
push 0x19
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x579fe4
call fcn.00485620
mov esi, eax
push 0x1b
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [esi]
push 0x1c
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [esi]
push 0x1d
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x26
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x29
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x2b
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x2c
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x4e
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x4f
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x50
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x5e
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x63
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x64
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x65
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x66
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push 0x67
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [0x579fc4]
mov edi, dword [ebp + 0x10]
xor eax, eax
mov bl, byte [edi + 0x5c]
xor esi, esi
mov byte [ebp - 0x14], bl
mov byte [ebp + 0x13], 0
cmp dword [0x579fb0], eax
jle 0x494b18
mov ecx, dword [0x579fac]
cmp byte [eax + ecx], bl
je 0x494b95
inc eax
cmp eax, dword [0x579fb0]
jl 0x494b06
xor eax, eax
test edx, edx
jle 0x494b32
mov ecx, dword [0x579fc0]
cmp byte [eax + ecx], bl
je 0x494bd5
inc eax
cmp eax, edx
jl 0x494b24
cmp bl, 0x18
je 0x494e19
cmp bl, 0x27
je 0x494e19
push dword [ebp - 0x14]
mov ecx, 0x579fd0
call fcn.00485940
test al, al
je 0x494c2e
push 0x518
call fcn.004efd54
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], 3
test eax, eax
je 0x494d95
push edi
push ebx
push dword [ebp + 8]
mov ecx, eax
call fcn.00493030
mov esi, eax
mov dword [ebp - 4], 0xffffffff
jmp 0x494e62
push 0x67c
call fcn.004efd54
add esp, 4
mov dword [ebp + 0x10], eax
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
test eax, eax
je 0x494bca
push edi
push ebx
push dword [ebp + 8]
mov ecx, eax
call fcn.0049d4c0
push 1
mov esi, eax
push str.show_weapon
jmp 0x494c0c
push 1
xor esi, esi
push str.show_weapon
jmp 0x494c0c
push 0x5c8
call fcn.004efd54
add esp, 4
mov dword [ebp + 0x10], eax
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], 1
test eax, eax
je 0x494c03
push edi
push ebx
push dword [ebp + 8]
mov ecx, eax
call fcn.00496980
mov esi, eax
jmp 0x494c05
xor esi, esi
push 1
push str.show_gear
push str.3D_View
mov ecx, 0x57f958
mov dword [ebp - 4], 0xffffffff
call fcn.004d0930
cmp eax, 1
sete byte [ebp + 0x13]
jmp 0x494e62
push dword [ebp - 0x14]
mov ecx, 0x579fe4
call fcn.00485940
test al, al
je 0x494c7b
push 0x510
call fcn.004efd54
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], 4
test eax, eax
je 0x494d95
push edi
push ebx
push dword [ebp + 8]
mov ecx, eax
call fcn.004932f0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
jmp 0x494e62
cmp bl, 0x1e
je 0x494de4
cmp bl, 0x62
je 0x494de4
cmp bl, 0x2a
jne 0x494cce
push 0x4e0
call fcn.004efd54
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], 6
test eax, eax
je 0x494d95
push edi
push ebx
push dword [ebp + 8]
mov ecx, eax
call fcn.00493b80
mov esi, eax
mov dword [ebp - 4], 0xffffffff
jmp 0x494e62
cmp bl, 0x5f
jne 0x494d0f
push 0x568
call fcn.004efd54
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], 7
test eax, eax
je 0x494d95
push edi
push ebx
push dword [ebp + 8]
mov ecx, eax
call fcn.00493a80
mov esi, eax
mov dword [ebp - 4], 0xffffffff
jmp 0x494e62
cmp bl, 0x78
jne 0x494d52
push 0x4c8
call fcn.004efd54
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], 8
test esi, esi
je 0x494d95
push edi
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.004933e0
mov dword [esi], vtable.PetEditor.0
mov dword [ebp - 4], 0xffffffff
jmp 0x494e62
cmp bl, 0x79
jne 0x494da3
push 0x4c8
call fcn.004efd54
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], 9
test esi, esi
je 0x494d95
push edi
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.004933e0
mov dword [esi], vtable.WingEditor.0
mov dword [ebp - 4], 0xffffffff
jmp 0x494e62
xor esi, esi
mov dword [ebp - 4], 0xffffffff
jmp 0x494e62
cmp bl, 0x96
jne 0x494e5f
push 0x518
call fcn.004efd54
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], 0xa
test eax, eax
je 0x494d95
push edi
push ebx
push dword [ebp + 8]
mov ecx, eax
call fcn.00493220
mov esi, eax
mov dword [ebp - 4], 0xffffffff
jmp 0x494e62
push 0x620
call fcn.004efd54
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], 5
test eax, eax
je 0x494d95
push edi
push ebx
push dword [ebp + 8]
mov ecx, eax
call fcn.004938c0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
jmp 0x494e62
push 0x6dc
call fcn.004efd54
add esp, 4
mov dword [ebp + 0x10], eax
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], 2
test eax, eax
je 0x494e51
push edi
push ebx
push dword [ebp + 8]
mov ecx, eax
call fcn.00495590
push 1
mov esi, eax
push str.show_mantle
jmp 0x494c0c
push 1
xor esi, esi
push str.show_mantle
jmp 0x494c0c
mov ebx, dword [ebp + 0xc]
mov byte [ebp - 0xd], 0
test esi, esi
je 0x494eb0
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x138]
call eax
test al, al
je 0x494ea6
cmp byte [ebp + 0x13], 0
je 0x494e95
push 0
push 0xc8
push 0x111
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x120]
cmp eax, 1
sete byte [ebp - 0xd]
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
jmp 0x494f1c
push 0
push edi
push ebx
lea ecx, [ebp - 0x130]
call fcn.00493100
cmp byte [ebp - 0x18], 0
mov eax, dword [str.Item_Definition]
cmovne eax, dword [str.Item_Creation]
push eax
mov eax, dword [ebp + 8]
push 1
push 0x118
push 0x14a
push dword [eax + 0x14]
lea ecx, [ebp - 0x130]
mov dword [ebp - 4], 0xb
call fcn.004de260
test al, al
je 0x494f0a
lea ecx, [ebp - 0x130]
call fcn.004de8b0
cmp eax, 1
sete byte [ebp - 0xd]
lea ecx, [ebp - 0x130]
mov dword [ebp - 4], 0xffffffff
call fcn.00493ca0
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret