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

Disassembly:
push 0xffffffffffffffff
push 0x52a8db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x514
mov eax, dword [esp + 0x530]
push ebx
mov ebx, ecx
push ebp
mov ecx, dword [esp + 0x53c]
push esi
mov dword [esp + 0x44], ecx
push edi
lea ecx, [esp + 0x4c]
mov dword [esp + 0x40], 0
mov dword [ebx + 0xc], 0
mov dword [esp + 0x44], eax
call fcn.004974f0
mov byte [0x54dc7c], 3
mov al, byte [ebx + 4]
test al, al
mov dword [esp + 0x52c], 1
jne 0x49103a
mov edi, dword [ebx + 0x14]
mov ecx, 0x19
xor eax, eax
rep stosd dword es:[edi], eax
mov edx, dword [ebx + 0x14]
mov dword [ebx + 0x1c], edx
call fcn.004a1910
test al, al
je 0x49123f
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x49123f
call fcn.004d0210
test eax, eax
je 0x49123f
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call fcn.00405cc0
mov edi, str.CCommWithEcu::AddressCodeEnter_
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00408220
test al, al
je 0x4910b6
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, str.CCommWithEcu::AddressCodeEnter_
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00408200
mov ecx, dword [esp + 0x538]
lea eax, [esp + 0x70]
push 0xa
and ecx, 0xff
push eax
push ecx
mov byte [esp + 0x538], 2
call fcn.00515147
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.004080a0
mov edi, 0x54df8c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x54df8c
lea ecx, [esp + 0x1c]
call fcn.004080a0
mov eax, dword [esp + 0x53c]
lea edx, [esp + 0x70]
push 0xa
and eax, 0xffff
push edx
push eax
call fcn.00515147
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.004080a0
mov edi, 0x54df8c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x54df8c
lea ecx, [esp + 0x1c]
call fcn.004080a0
mov ecx, dword [esp + 0x544]
mov edx, dword [esp + 0x540]
push ecx
push edx
lea eax, [esp + 0x78]
push str._.2f
push eax
call fcn.00514b75
lea edi, [esp + 0x80]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004080a0
mov edi, 0x54df8c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x54df8c
lea ecx, [esp + 0x1c]
call fcn.004080a0
movsx eax, word [esp + 0x548]
lea edx, [esp + 0x70]
push 0xa
push edx
push eax
call fcn.00515147
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.004080a0
mov edi, 0x54dcd4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x54dcd4
lea ecx, [esp + 0x1c]
call fcn.004080a0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x491221
mov eax, 0x53115c
mov ecx, dword [ebx + 0x10]
push 0
push eax
call fcn.004aad20
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x530], 1
call fcn.00405cc0
mov ecx, dword [ebx + 0x1c]
fld qword [esp + 0x540]
fcom qword [0x5312b8]
mov byte [ecx], 2
mov edx, dword [ebx + 0x1c]
mov cl, byte [esp + 0x538]
mov byte [edx + 1], 4
mov eax, dword [ebx + 0x1c]
mov byte [eax + 2], cl
xor cl, cl
fnstsw ax
mov byte [esp + 0x13], cl
test ah, 0x41
jne 0x49128c
fmul qword [0x531328]
fcom qword [0x5312b8]
inc cl
fnstsw ax
test ah, 0x41
je 0x491273
mov byte [esp + 0x13], cl
fcom qword [0x531db8]
fnstsw ax
test ah, 1
je 0x4912b2
fmul qword [0x5312b8]
fcom qword [0x531db8]
dec cl
fnstsw ax
test ah, 1
jne 0x491299
mov byte [esp + 0x13], cl
fmul qword [0x531328]
call fcn.00514f08
mov esi, dword [ebx + 0x1c]
mov cl, byte [esp + 0x13]
xor edx, edx
inc cl
mov dl, ah
mov byte [esi + 3], dl
mov edx, dword [ebx + 0x1c]
mov byte [edx + 4], al
mov eax, dword [ebx + 0x1c]
mov byte [eax + 5], cl
mov eax, dword [esp + 0x53c]
mov edx, dword [ebx + 0x1c]
xor ecx, ecx
mov cl, ah
and eax, 0xffff
and eax, 0x800000ff
mov byte [edx + 6], cl
jns 0x4912fd
dec eax
or eax, 0xffffff00
inc eax
mov ecx, dword [ebx + 0x1c]
movsx ebp, word [esp + 0x548]
mov byte [ecx + 7], al
mov eax, ebp
cdq
and edx, 0xff
add eax, edx
mov edx, dword [ebx + 0x1c]
sar eax, 8
mov byte [edx + 8], al
mov eax, ebp
and eax, 0x800000ff
jns 0x49132f
dec eax
or eax, 0xffffff00
inc eax
mov ecx, dword [ebx + 0x1c]
mov byte [ecx + 9], al
mov al, byte [ebx + 4]
test al, al
je 0x4913ee
lea ecx, [esp + 0x70]
call fcn.004974f0
lea ecx, [esp + 0x70]
mov byte [esp + 0x52c], 3
call fcn.00497af0
mov ebp, dword [ebx + 0x1c]
lea ecx, [ebx + 0x20]
add ebp, 0xa
lea edx, [esp + 0x44]
mov dword [ebx + 0x1c], ebp
mov eax, dword [ecx + 8]
push edx
push 1
push eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 2
call fcn.004b7130
mov esi, dword [esp + 0x534]
lea eax, [esp + 0x70]
push eax
mov ecx, esi
call fcn.00495cf0
lea ecx, [esp + 0x80]
lea edi, [esi + 0x10]
push ecx
mov ecx, edi
mov byte [esp + 0x530], 4
call fcn.00493160
mov dl, byte [esp + 0x90]
mov dword [esp + 0x40], 1
mov byte [edi + 0x10], dl
lea ecx, [esp + 0x70]
mov byte [esp + 0x52c], 1
call fcn.004975f0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x52c], 0
call fcn.004975f0
mov eax, esi
jmp 0x49200f
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx]
push 0xa
push eax
call fcn.004ab500
mov edi, dword [ebx + 0x18]
mov ecx, 0x3fff
xor eax, eax
push 0xffff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebx + 0x18]
push ecx
mov ecx, dword [ebx]
call fcn.004ab730
test eax, eax
jne 0x491b63
mov dl, byte [esp + 0x13]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], dl
call fcn.00405cc0
mov eax, dword [esp + 0x538]
mov byte [esp + 0x52c], 5
and eax, 0xff
push eax
lea eax, [esp + 0x9c]
push str.BYTE_ucAddressCode__0x_02X_
push eax
call fcn.00514b75
lea edi, [esp + 0xa4]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004080a0
mov edi, str._n__W_UINT16_ui16Parameter_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._n__W_UINT16_ui16Parameter_
lea ecx, [esp + 0x1c]
call fcn.004080a0
mov bl, byte [esp + 0x53c]
xor al, al
test bl, 1
je 0x4914cd
mov edi, str.ACE_BPS_AUTO_RECOGNIZE
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.ACE_BPS_AUTO_RECOGNIZE
lea ecx, [esp + 0x1c]
call fcn.004080a0
mov al, 1
test bl, 2
je 0x4915b9
test al, al
je 0x491545
mov edi, 0x54dd7c
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x531160]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [esp + 0x1c]
sub edx, ecx
cmp edx, esi
ja 0x491500
call fcn.00514140
test esi, esi
jbe 0x491545
mov eax, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x18]
lea ebx, [eax + esi]
push ebx
call fcn.00408220
test al, al
je 0x491545
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebx
lea edi, [edx + ecx]
mov ecx, esi
mov eax, ecx
mov esi, 0x54dd7c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00408200
mov edi, str.ACE_KW2_REVERSE_TO_ECU
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x531160]
sub ecx, edx
cmp ecx, esi
ja 0x49156b
call fcn.00514140
test esi, esi
jbe 0x4915b0
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x18]
lea ebx, [edx + esi]
push ebx
call fcn.00408220
test al, al
je 0x4915b0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push ebx
lea edi, [ecx + eax]
mov ecx, esi
mov edx, ecx
mov esi, str.ACE_KW2_REVERSE_TO_ECU
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00408200
mov bl, byte [esp + 0x53c]
mov al, 1
test bl, 4
je 0x4916a3
test al, al
je 0x491630
mov edi, 0x54dd7c
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
mov eax, dword [0x531160]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x4915eb
call fcn.00514140
test esi, esi
jbe 0x491630
mov ecx, dword [esp + 0x1c]
push 0
lea ebx, [ecx + esi]
lea ecx, [esp + 0x18]
push ebx
call fcn.00408220
test al, al
je 0x491630
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, esi
mov esi, 0x54dd7c
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00408200
mov edi, str.ACE_GET_ADDRESS_REVERSE_FROM_ECU
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
mov eax, dword [0x531160]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x491655
call fcn.00514140
test esi, esi
jbe 0x49169a
mov ecx, dword [esp + 0x1c]
push 0
lea ebx, [ecx + esi]
lea ecx, [esp + 0x18]
push ebx
call fcn.00408220
test al, al
je 0x49169a
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, esi
mov esi, str.ACE_GET_ADDRESS_REVERSE_FROM_ECU
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00408200
mov bl, byte [esp + 0x53c]
mov al, 1
test bl, 8
je 0x49178d
test al, al
je 0x49171a
mov edi, 0x54dd7c
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
mov eax, dword [0x531160]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x4916d5
call fcn.00514140
test esi, esi
jbe 0x49171a
mov ecx, dword [esp + 0x1c]
push 0
lea ebx, [ecx + esi]
lea ecx, [esp + 0x18]
push ebx
call fcn.00408220
test al, al
je 0x49171a
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, esi
mov esi, 0x54dd7c
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00408200
mov edi, str.ACE_RECEIVE_KW5
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
mov eax, dword [0x531160]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x49173f
call fcn.00514140
test esi, esi
jbe 0x491784
mov ecx, dword [esp + 0x1c]
push 0
lea ebx, [ecx + esi]
lea ecx, [esp + 0x18]
push ebx
call fcn.00408220
test al, al
je 0x491784
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, esi
mov esi, str.ACE_RECEIVE_KW5
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00408200
mov bl, byte [esp + 0x53c]
mov al, 1
test bl, 0x10
je 0x491877
test al, al
je 0x491804
mov edi, 0x54dd7c
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
mov eax, dword [0x531160]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x4917bf
call fcn.00514140
test esi, esi
jbe 0x491804
mov ecx, dword [esp + 0x1c]
push 0
lea ebx, [ecx + esi]
lea ecx, [esp + 0x18]
push ebx
call fcn.00408220
test al, al
je 0x491804
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, esi
mov esi, 0x54dd7c
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00408200
mov edi, str.ACE_RECEIVE_ONE_FRAME
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
mov eax, dword [0x531160]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x491829
call fcn.00514140
test esi, esi
jbe 0x49186e
mov ecx, dword [esp + 0x1c]
push 0
lea ebx, [ecx + esi]
lea ecx, [esp + 0x18]
push ebx
call fcn.00408220
test al, al
je 0x49186e
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, esi
mov esi, str.ACE_RECEIVE_ONE_FRAME
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00408200
mov bl, byte [esp + 0x53c]
mov al, 1
test bl, 0x80
je 0x491958
test al, al
je 0x4918ee
mov edi, 0x54dd7c
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
mov eax, dword [0x531160]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x4918a9
call fcn.00514140
test esi, esi
jbe 0x4918ee
mov ecx, dword [esp + 0x1c]
push 0
lea ebx, [ecx + esi]
lea ecx, [esp + 0x18]
push ebx
call fcn.00408220
test al, al
je 0x4918ee
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, esi
mov esi, 0x54dd7c
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00408200
mov edi, str.ACE_CLOSE_TRIGGER_CHANNEL
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
mov eax, dword [0x531160]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x491913
call fcn.00514140
test esi, esi
jbe 0x491958
mov eax, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x18]
lea ebx, [eax + esi]
push ebx
call fcn.00408220
test al, al
je 0x491958
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebx
lea edi, [edx + ecx]
mov ecx, esi
mov eax, ecx
mov esi, str.ACE_CLOSE_TRIGGER_CHANNEL
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00408200
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push ecx
push edx
lea eax, [esp + 0xa0]
push str.___n__W_FLOAT_fBps____9.1f_bps
push eax
call fcn.00514b75
lea edi, [esp + 0xa8]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x1c]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x531160]
sub ecx, edx
cmp ecx, esi
ja 0x49199f
call fcn.00514140
test esi, esi
jbe 0x4919e6
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x18]
lea ebx, [edx + esi]
push ebx
call fcn.00408220
test al, al
je 0x4919e6
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push ebx
lea edi, [ecx + eax]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0x9c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00408200
push ebp
lea eax, [esp + 0x9c]
push str.___n__W_INT16_i16ReverseKw2TimeInterval___d_mS
push eax
call fcn.00514b75
lea edi, [esp + 0xa4]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x1c]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x531160]
sub ecx, edx
cmp ecx, esi
ja 0x491a24
call fcn.00514140
test esi, esi
jbe 0x491a6b
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x18]
lea ebx, [edx + esi]
push ebx
call fcn.00408220
test al, al
je 0x491a6b
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push ebx
lea edi, [ecx + eax]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0x9c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00408200
mov al, byte [esp + 0x13]
sub esp, 0x10
mov ebx, esp
mov dword [esp + 0x38], esp
push 0
mov ecx, ebx
mov byte [ebx], al
call fcn.00405cc0
mov edi, str.CCommWithEcu::AddressCodeEnter__
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov ecx, ebx
push ebp
call fcn.00408220
test al, al
je 0x491ac2
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
mov esi, str.CCommWithEcu::AddressCodeEnter__
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00408200
sub esp, 0x10
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
mov byte [esp + 0x550], 6
call fcn.0040d030
push 0xfffffffffffffff6
lea ecx, [esp + 0x120]
mov byte [esp + 0x550], 5
call fcn.004a2580
mov esi, eax
mov cx, word [esi + 4]
lea edi, [esi + 8]
mov word [esp + 0x74], cx
mov bl, 7
mov dl, byte [edi]
push 0
lea ecx, [esp + 0x7c]
mov byte [esp + 0x530], bl
mov byte [esp + 0x7c], dl
call fcn.00405cc0
mov eax, dword [0x531160]
lea ecx, [esp + 0x78]
push eax
push 0
push edi
call fcn.00407be0
add esi, 0x18
lea ecx, [esp + 0x88]
push esi
mov byte [esp + 0x530], 8
call fcn.0040d030
lea ecx, [esp + 0x70]
push 0x541bb8
push ecx
mov dword [esp + 0x78], 0x531da8
mov byte [esp + 0x534], bl
call fcn.0051510d
mov esi, dword [ebx + 0x18]
add esi, 8
movzx ax, byte [esi]
inc esi
test ax, ax
jne 0x491beb
mov esi, dword [esp + 0x534]
mov dl, byte [esp + 0x4c]
lea ecx, [esp + 0x4c]
mov byte [esi], dl
call fcn.00495de0
test eax, eax
jge 0x491b8f
xor eax, eax
shl eax, 4
push eax
call fcn.00514b36
mov ecx, dword [esp + 0x54]
add esp, 4
mov dword [esi + 4], eax
push eax
mov eax, dword [esp + 0x58]
push eax
push ecx
mov ecx, esi
call fcn.00495e00
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea edx, [esp + 0x5c]
lea ecx, [esi + 0x10]
push edx
mov byte [esp + 0x530], 9
call fcn.0048bd10
lea ecx, [esp + 0x4c]
mov dword [esp + 0x40], 1
mov byte [esp + 0x52c], 0
call fcn.004975f0
mov eax, esi
jmp 0x49200f
mov cl, byte [esp + 0x13]
mov byte [esp + 0x30], cl
xor ecx, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
movsx eax, ax
xor ebp, ebp
cmp eax, ecx
mov byte [esp + 0x52c], 0xa
mov dword [esp + 0x28], eax
jle 0x491c91
movzx di, byte [esi]
inc esi
test di, di
jle 0x491c74
lea ecx, [esp + 0x24]
call fcn.0048a5e0
push edi
push esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x534], 0xb
call fcn.0048ac30
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x24]
push edx
push 1
push eax
lea ecx, [esp + 0x3c]
call fcn.00405d10
movsx ecx, di
add esi, ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x52c], 0xa
call fcn.0048a720
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
inc ebp
cmp ebp, eax
jl 0x491c16
mov eax, dword [esp + 0x34]
test eax, eax
je 0x491c91
sub ecx, eax
sar ecx, 2
je 0x491c91
lea edx, [esp + 0x30]
lea ecx, [esp + 0x4c]
push edx
call fcn.00497860
call fcn.004a1910
test al, al
je 0x491f37
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x491f37
call fcn.004d0210
test eax, eax
je 0x491f37
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call fcn.00405cc0
mov edi, 0x55802c
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00408220
test al, al
je 0x491d0f
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, 0x55802c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], 0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x52c], 0xc
call fcn.0048a5e0
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x124]
mov byte [esp + 0x124], 0
rep stosd dword es:[edi], eax
xor esi, esi
lea ecx, [esp + 0x4c]
mov byte [esp + 0x52c], 0xd
mov dword [esp + 0x28], esi
call fcn.00497ad0
test ax, ax
jle 0x491ef9
mov dword [esp + 0x24], 0
push esi
lea ecx, [esp + 0x50]
call fcn.00497a10
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x491ee0
mov edx, dword [eax + 8]
mov eax, dword [esp + 0x24]
sub edx, ecx
sar edx, 2
cmp eax, edx
jae 0x491ee0
mov ecx, dword [esp + 0x28]
push eax
push ecx
lea ecx, [esp + 0x54]
call fcn.00497a10
mov ecx, eax
call fcn.00405cb0
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call fcn.0048a5f0
lea ecx, [esp + 0x30]
call fcn.0048a8d0
lea ecx, [esp + 0x2c]
call fcn.0048ab70
lea ecx, [esp + 0x2c]
mov ebp, eax
xor esi, esi
call fcn.0048ab50
test ax, ax
jle 0x491dff
lea edi, [esp + 0x124]
xor edx, edx
mov dl, byte [esi + ebp]
push edx
push str._.2X
push edi
call fcn.00514b75
add esp, 0xc
lea ecx, [esp + 0x2c]
inc esi
add edi, 3
call fcn.0048ab50
movsx eax, ax
cmp esi, eax
jl 0x491dd7
mov edi, str.Ans:
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00408220
test al, al
je 0x491e45
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, str.Ans:
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], 0
lea edi, [esp + 0x124]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x531160]
sub ecx, edx
cmp ecx, esi
ja 0x491e6d
call fcn.00514140
test esi, esi
jbe 0x491eb6
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x18]
lea ebp, [edx + esi]
push ebp
call fcn.00408220
test al, al
je 0x491eb6
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, esi
lea esi, [esp + 0x124]
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [ecx + ebp], 0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x491ec3
mov eax, 0x53115c
mov ecx, dword [ebx + 0x10]
push 0
push eax
call fcn.004aad20
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
inc eax
mov dword [esp + 0x24], eax
jmp 0x491d60
inc esi
lea ecx, [esp + 0x4c]
mov dword [esp + 0x28], esi
call fcn.00497ad0
movsx edx, ax
cmp esi, edx
jl 0x491d58
lea ecx, [esp + 0x2c]
mov byte [esp + 0x52c], 0xc
call fcn.0048a720
mov eax, dword [esp + 0x18]
mov byte [esp + 0x52c], 0xa
test eax, eax
je 0x491f37
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x491f2e
cmp al, 0xff
je 0x491f2e
dec al
mov byte [ecx], al
jmp 0x491f37
push ecx
call fcn.00514120
add esp, 4
mov ebx, dword [esp + 0x534]
mov ecx, dword [esp + 0x50]
mov al, byte [esp + 0x4c]
test ecx, ecx
mov byte [ebx], al
jne 0x491f50
xor eax, eax
jmp 0x491f59
mov eax, dword [esp + 0x54]
sub eax, ecx
sar eax, 4
test eax, eax
jge 0x491f5f
xor eax, eax
shl eax, 4
push eax
call fcn.00514b36
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x54]
add esp, 4
cmp edi, ecx
mov dword [ebx + 4], eax
mov ebp, ecx
mov esi, eax
je 0x491f92
push edi
push esi
call fcn.00496060
add edi, 0x10
add esp, 8
add esi, 0x10
cmp edi, ebp
jne 0x491f7e
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], esi
lea ecx, [esp + 0x5c]
lea esi, [ebx + 0x10]
push ecx
mov ecx, esi
mov byte [esp + 0x530], 0xe
call fcn.00415300
mov dl, byte [esp + 0x6c]
mov eax, dword [esp + 0x38]
mov byte [esi + 0x10], dl
mov esi, dword [esp + 0x34]
cmp esi, eax
mov dword [esp + 0x40], 1
mov byte [esp + 0x52c], 1
mov edi, eax
je 0x491fe6
mov ecx, esi
call fcn.0048a720
add esi, 4
cmp esi, edi
jne 0x491fd4
mov esi, dword [esp + 0x34]
push esi
call fcn.00514120
xor eax, eax
add esp, 4
lea ecx, [esp + 0x4c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov byte [esp + 0x52c], al
call fcn.004975f0
mov eax, ebx
mov ecx, dword [esp + 0x524]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x520
ret 0x18