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

Disassembly:
sub esp, 0x118
push esi
mov esi, ecx
mov dword [esi + 0x1f4], 0x3f800000
mov ecx, dword [0x5227bc]
mov eax, dword [str.INT_TT_SAVE]
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [0x5227ac]
mov dword [esp + 0x14], eax
mov eax, dword [0x5227c0]
mov dword [esp + 0x44], ecx
mov cx, word [0x5227b4]
mov dword [esp + 0x1c], eax
mov eax, dword [str.INT_TT_JOURNAL]
mov word [esp + 0x4c], cx
xor ecx, ecx
mov dword [esp + 0x40], eax
mov eax, dword [0x5227b0]
mov dword [esp + 0x4f], ecx
mov dword [esp + 0x48], eax
mov al, byte [0x5227b6]
mov dword [esp + 0x53], ecx
mov byte [esp + 0x4e], al
mov eax, dword [str.INT_TT_UPGRADE]
mov dword [esp + 0x57], ecx
mov dword [esp + 0x5b], ecx
mov dword [esp + 0x6c], eax
mov eax, dword [0x5227a0]
mov byte [esp + 0x5f], cl
mov ecx, dword [0x52279c]
mov dword [esp + 0x74], eax
mov al, byte [0x5227a6]
mov dword [esp + 0x70], ecx
mov cx, word [0x5227a4]
mov byte [esp + 0x7a], al
mov eax, dword [str.INT_TT_TRADE]
mov word [esp + 0x78], cx
xor ecx, ecx
mov dword [esp + 0x98], eax
mov eax, dword [0x522790]
xor edx, edx
mov dword [esp + 0x7b], ecx
mov dword [esp + 0xa0], eax
mov dword [esp + 0x7f], ecx
xor eax, eax
mov dword [esp + 0x83], ecx
mov dword [esp + 0xa5], eax
mov dword [esp + 0x87], ecx
mov dword [esp + 0xa9], eax
mov byte [esp + 0x8b], cl
mov ecx, dword [0x52278c]
mov dword [esp + 0xad], eax
mov dword [esp + 0x9c], ecx
mov cl, byte [0x522794]
mov dword [esp + 0xb1], eax
mov word [esp + 0xb5], ax
push edi
mov byte [esp + 0xa8], cl
mov dword [esp + 0xc], 8
mov byte [esp + 0x10], dl
mov dword [esp + 0x14], 6
mov dword [esp + 0x38], 0xc
mov byte [esp + 0x3c], dl
mov dword [esp + 0x40], 2
mov dword [esp + 0x64], 0xd
mov byte [esp + 0x68], dl
mov dword [esp + 0x6c], edx
mov dword [esp + 0x90], 0xa
mov byte [esp + 0x94], dl
mov dword [esp + 0x98], 7
mov byte [esp + 0xbb], al
mov dword [esp + 0xbc], edx
mov byte [esp + 0xc0], dl
mov dword [esp + 0xc4], 0xb
mov ecx, 8
lea edi, [esp + 0xc8]
rep stosd dword es:[edi], eax
mov ecx, dword [str.INT_TT_EXIT]
mov eax, 1
mov dword [esp + 0xe8], eax
mov byte [esp + 0xec], al
mov eax, dword [0x522780]
mov dword [esp + 0xf8], eax
xor eax, eax
mov dword [esp + 0x100], eax
mov dword [esp + 0x104], eax
mov dword [esp + 0xf4], ecx
mov ecx, dword [0x522784]
mov dword [esp + 0x108], eax
mov dword [esp + 0xfc], ecx
mov ecx, dword [0x5b7498]
mov dword [esp + 0x10c], eax
mov dword [esp + 0xf0], 8
mov dword [esp + 0x110], eax
cmp dword [ecx + 0x250], 3
jne 0x412156
mov dword [esp + 0xc], edx
mov eax, dword [esi + 0x26c]
cmp eax, 0xffffffff
je 0x4121b2
cmp eax, edx
jl 0x4122a3
cmp eax, dword [0x676d5c]
jge 0x4122a3
mov ecx, dword [0x676d60]
imul eax, eax, 0x108
mov eax, dword [eax + ecx + 0xe4]
dec eax
cmp eax, 0xa
ja case.0x412199.2
movzx eax, byte [eax + 0x4122e8]
jmp dword [eax*4 + 0x4122d0]
mov dword [esp + 0x64], edx
mov dword [esp + 0x90], edx
mov dword [esp + 0xe8], edx
mov ecx, esi
call fcn.00406b10
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.004101f0
pop edi
pop esi
add esp, 0x118
ret
mov dword [esi + 0x1f8], 0x3ccccccd
mov dword [esi + 0x1f4], 0x3f800000
mov ecx, dword [str.INT_TT_ORG]
mov edx, dword [0x522774]
mov ax, word [0x522778]
mov dword [esp + 0xc8], ecx
mov cl, byte [0x52277a]
mov dword [esp + 0xbc], 0x1f
mov dword [esp + 0xcc], edx
mov word [esp + 0xd0], ax
mov byte [esp + 0xd2], cl
jmp 0x4121b2
mov dword [esi + 0x1f8], 0x3c4ccccd
mov dword [esi + 0x1f4], 0x3e800000
jmp 0x4121b2
mov eax, dword [0x522760]
mov ecx, dword [0x522764]
mov dword [esp + 0xc8], eax
mov eax, dword [0x522768]
mov dword [esp + 0xcc], ecx
mov cx, word [0x52276c]
mov dword [esp + 0xd0], eax
mov al, byte [0x52276e]
mov dword [esp + 0xbc], 0x1a
mov dword [esp + 0xc4], 0xa
mov word [esp + 0xd4], cx
mov byte [esp + 0xd6], al
mov dword [esp + 0x90], edx
mov dword [esp + 0x64], edx
jmp 0x4121b2
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x118]
mov dword [esp + 0xc], 0x52145c
call dword [0x521298]
push 0x52fdac
lea edx, [esp + 0x118]
push edx
call fcn.00514dd6
nop
into
and dword [ecx], eax
cmp eax, 0x24004122
and al, byte [ecx]
xchg ebx, eax
and al, byte [ecx]
mov al, byte [0x9a004121]
and al, byte [ecx]
add byte [0x3050201], al
add eax, 67305477
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop