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

Disassembly:
push 0xffffffffffffffff
push 0x5175db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa30
push ebx
mov ebx, ecx
push ebp
push esi
lea eax, [ebx + 0x5c]
push edi
push eax
mov ecx, 0x5b7674
mov dword [esp + 0x1c], ebx
call fcn.004fc0ee
mov edi, dword [esp + 0xa50]
xor ebp, ebp
push ebp
push edi
lea ecx, [esp + 0x944]
push 0x8740fc
push ecx
call fcn.004e46f0
lea edx, [esp + 0x94c]
push 0x53c2a0
push edx
call fcn.004ca1f0
mov esi, eax
add esp, 0x18
cmp esi, ebp
mov dword [esp + 0x14], esi
jne 0x41624e
mov eax, dword [0x54de98]
mov dword [esp + 0x20], eax
push edi
lea ecx, [esp + 0x24]
push str.Unable_to_open___s__
push ecx
mov dword [esp + 0xa54], ebp
call fcn.004f581b
mov edx, dword [esp + 0x2c]
add esp, 0xc
mov ecx, ebx
push 0x30
push str.No_Script_Source_File_Found_
push edx
call fcn.004f9e76
mov ecx, ebx
call fcn.0040c2a0
mov ecx, ebx
call fcn.00423ea0
lea ecx, [esp + 0x20]
mov dword [esp + 0xa48], 0xffffffff
call fcn.004fc001
xor eax, eax
jmp 0x416f36
push esi
call fcn.004ca4f0
add esp, 4
test eax, eax
jne 0x416f21
mov edi, 0x5b764c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x3c]
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 + 0x14]
push ecx
push 0x800
push edx
call fcn.004ca690
lea eax, [esp + 0x48]
inc ebp
push eax
call fcn.00428020
lea ecx, [esp + 0x4c]
push ecx
call fcn.00428060
mov edx, eax
mov edi, str.__SCRIPT_BLOCK_START
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__SCRIPT_BLOCK_START
push edx
call fcn.004b6860
add esp, 0x20
test eax, eax
jne 0x416f04
mov ecx, ebx
call fcn.0040c2a0
mov ecx, ebx
call fcn.0040f010
xor eax, eax
mov dword [esp + 0x20], 0xffff0000
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov byte [esp + 0x13], al
mov dword [esp + 0x24], eax
mov byte [esp + 0x1f], al
mov ebx, dword [esp + 0x14]
push ebx
call fcn.004ca4f0
add esp, 4
test eax, eax
jne 0x416ef4
mov edi, 0x5b764c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x3c]
mov eax, ecx
mov esi, edi
mov edi, edx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x800
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x44]
push ecx
call fcn.004ca690
lea edx, [esp + 0x48]
inc ebp
push edx
call fcn.00428020
lea eax, [esp + 0x4c]
push eax
call fcn.00428060
mov esi, eax
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x416306
push 2
push 0x53c258
push esi
call fcn.004b6860
add esp, 0xc
test eax, eax
je 0x416306
mov edi, str.__SCRIPT_BLOCK_END
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__SCRIPT_BLOCK_END
push esi
call fcn.004b6860
add esp, 0xc
test eax, eax
je 0x416f04
mov edi, str.__UTYPE_VALS_START
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__UTYPE_VALS_START
push esi
call fcn.004b6860
add esp, 0xc
test eax, eax
jne 0x41655d
push str.__t_r_n
push esi
xor ebx, ebx
call fcn.004b7274
add esp, 8
test eax, eax
je 0x416422
push 0x5b764c
push ebx
call fcn.004b7274
add esp, 8
test eax, eax
je 0x416422
mov esi, dword [esp + 0x18]
push eax
mov ecx, esi
call fcn.00412890
cmp eax, 0xffffffff
je 0x416422
mov ecx, eax
shl ecx, 4
add ecx, eax
lea ecx, [ecx + ecx*2]
shl ecx, 4
lea ebx, [ecx + esi + 0x854]
mov esi, dword [esp + 0x14]
push esi
lea edx, [esp + 0x40]
push 0x800
push edx
call fcn.004ca690
lea eax, [esp + 0x48]
inc ebp
push eax
mov dword [esp + 0x40], ebp
call fcn.00428020
lea ecx, [esp + 0x4c]
push ecx
call fcn.00428060
mov esi, eax
mov edi, str.__UTYPE_VALS_END
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__UTYPE_VALS_END
push esi
call fcn.004b6860
add esp, 0x20
test eax, eax
je 0x416302
test ebx, ebx
je 0x41653f
push 0x53ea10
push esi
call fcn.004b7274
add esp, 8
test eax, eax
je 0x41653f
push eax
call fcn.004b7269
mov edi, eax
push 0x5b764c
push 0
mov dword [esp + 0x44], edi
call fcn.004b7274
mov esi, eax
add esp, 0xc
test esi, esi
je 0x41653f
mov edx, dword [ebx]
mov ecx, dword [esp + 0x18]
push edi
push edx
call fcn.00412900
test eax, eax
jne 0x41653f
mov ebp, dword [ebx + 0x324]
cmp ebp, 0x64
jge 0x41653f
mov eax, dword [ebx + 0x32c]
add eax, 2
cmp ebp, eax
jge 0x41653f
lea ecx, [ebp + 1]
mov edi, esi
mov dword [ebx + 0x324], ecx
or ecx, 0xffffffff
xor eax, eax
push 0x1edb
repne scasb al, byte es:[edi]
not ecx
push str.D:descent3maineditorDallasMainDlg.cpp
push ecx
call fcn.004cb090
mov edx, eax
add esp, 0xc
test edx, edx
mov dword [ebx + ebp*8 + 4], edx
je 0x416f51
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
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 + 0x38]
mov dword [ebx + ebp*8 + 8], ecx
mov esi, dword [esp + 0x14]
push esi
call fcn.004ca4f0
mov ebp, dword [esp + 0x34]
add esp, 4
test eax, eax
jne 0x416302
jmp 0x416426
mov edi, str.__DOOR_LIST_START
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__DOOR_LIST_START
push esi
call fcn.004b6860
add esp, 0xc
test eax, eax
jne 0x4165fb
mov ebx, dword [esp + 0x14]
push ebx
lea edx, [esp + 0x40]
push 0x800
push edx
call fcn.004ca690
lea eax, [esp + 0x48]
inc ebp
push eax
call fcn.00428020
lea ecx, [esp + 0x4c]
push ecx
call fcn.00428060
mov esi, eax
mov edi, str.__DOOR_LIST_END
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__DOOR_LIST_END
push esi
call fcn.004b6860
add esp, 0x20
test eax, eax
je 0x416306
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4165e8
mov ecx, dword [esp + 0x18]
push esi
call fcn.00411420
push ebx
call fcn.004ca4f0
add esp, 4
test eax, eax
jne 0x416306
jmp 0x416583
mov edi, str.__OBJECT_LIST_START
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__OBJECT_LIST_START
push esi
call fcn.004b6860
add esp, 0xc
test eax, eax
jne 0x416699
mov ebx, dword [esp + 0x14]
push ebx
lea edx, [esp + 0x40]
push 0x800
push edx
call fcn.004ca690
lea eax, [esp + 0x48]
inc ebp
push eax
call fcn.00428020
lea ecx, [esp + 0x4c]
push ecx
call fcn.00428060
mov esi, eax
mov edi, str.__OBJECT_LIST_END
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__OBJECT_LIST_END
push esi
call fcn.004b6860
add esp, 0x20
test eax, eax
je 0x416306
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x416686
mov ecx, dword [esp + 0x18]
push esi
call fcn.00411560
push ebx
call fcn.004ca4f0
add esp, 4
test eax, eax
jne 0x416306
jmp 0x416621
mov edi, str.__ROOM_LIST_START
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__ROOM_LIST_START
push esi
call fcn.004b6860
add esp, 0xc
test eax, eax
jne 0x416737
mov ebx, dword [esp + 0x14]
push ebx
lea edx, [esp + 0x40]
push 0x800
push edx
call fcn.004ca690
lea eax, [esp + 0x48]
inc ebp
push eax
call fcn.00428020
lea ecx, [esp + 0x4c]
push ecx
call fcn.00428060
mov esi, eax
mov edi, str.__ROOM_LIST_END
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__ROOM_LIST_END
push esi
call fcn.004b6860
add esp, 0x20
test eax, eax
je 0x416306
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x416724
mov ecx, dword [esp + 0x18]
push esi
call fcn.004116a0
push ebx
call fcn.004ca4f0
add esp, 4
test eax, eax
jne 0x416306
jmp 0x4166bf
mov edi, str.__TRIGGER_LIST_START
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__TRIGGER_LIST_START
push esi
call fcn.004b6860
add esp, 0xc
test eax, eax
jne 0x4167d5
mov ebx, dword [esp + 0x14]
push ebx
lea edx, [esp + 0x40]
push 0x800
push edx
call fcn.004ca690
lea eax, [esp + 0x48]
inc ebp
push eax
call fcn.00428020
lea ecx, [esp + 0x4c]
push ecx
call fcn.00428060
mov esi, eax
mov edi, str.__TRIGGER_LIST_END
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__TRIGGER_LIST_END
push esi
call fcn.004b6860
add esp, 0x20
test eax, eax
je 0x416306
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4167c2
mov ecx, dword [esp + 0x18]
push esi
call fcn.004117e0
push ebx
call fcn.004ca4f0
add esp, 4
test eax, eax
jne 0x416306
jmp 0x41675d
mov edi, str.__SOUND_LIST_START
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__SOUND_LIST_START
push esi
call fcn.004b6860
add esp, 0xc
test eax, eax
jne 0x416873
mov ebx, dword [esp + 0x14]
push ebx
lea edx, [esp + 0x40]
push 0x800
push edx
call fcn.004ca690
lea eax, [esp + 0x48]
inc ebp
push eax
call fcn.00428020
lea ecx, [esp + 0x4c]
push ecx
call fcn.00428060
mov esi, eax
mov edi, str.__SOUND_LIST_END
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__SOUND_LIST_END
push esi
call fcn.004b6860
add esp, 0x20
test eax, eax
je 0x416306
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x416860
mov ecx, dword [esp + 0x18]
push esi
call fcn.00411910
push ebx
call fcn.004ca4f0
add esp, 4
test eax, eax
jne 0x416306
jmp 0x4167fb
mov edi, str.__TEXTURE_LIST_START
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__TEXTURE_LIST_START
push esi
call fcn.004b6860
add esp, 0xc
test eax, eax
jne 0x416911
mov ebx, dword [esp + 0x14]
push ebx
lea edx, [esp + 0x40]
push 0x800
push edx
call fcn.004ca690
lea eax, [esp + 0x48]
inc ebp
push eax
call fcn.00428020
lea ecx, [esp + 0x4c]
push ecx
call fcn.00428060
mov esi, eax
mov edi, str.__TEXTURE_LIST_END
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__TEXTURE_LIST_END
push esi
call fcn.004b6860
add esp, 0x20
test eax, eax
je 0x416306
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4168fe
mov ecx, dword [esp + 0x18]
push esi
call fcn.00411a50
push ebx
call fcn.004ca4f0
add esp, 4
test eax, eax
jne 0x416306
jmp 0x416899
mov edi, str.__SPECNAME_LIST_START
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__SPECNAME_LIST_START
push esi
call fcn.004b6860
add esp, 0xc
test eax, eax
jne 0x4169af
mov ebx, dword [esp + 0x14]
push ebx
lea edx, [esp + 0x40]
push 0x800
push edx
call fcn.004ca690
lea eax, [esp + 0x48]
inc ebp
push eax
call fcn.00428020
lea ecx, [esp + 0x4c]
push ecx
call fcn.00428060
mov esi, eax
mov edi, str.__SPECNAME_LIST_END
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__SPECNAME_LIST_END
push esi
call fcn.004b6860
add esp, 0x20
test eax, eax
je 0x416306
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41699c
mov ecx, dword [esp + 0x18]
push esi
call fcn.00411b90
push ebx
call fcn.004ca4f0
add esp, 4
test eax, eax
jne 0x416306
jmp 0x416937
mov edi, str.__PATH_LIST_START
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__PATH_LIST_START
push esi
call fcn.004b6860
add esp, 0xc
test eax, eax
jne 0x416a4d
mov ebx, dword [esp + 0x14]
push ebx
lea edx, [esp + 0x40]
push 0x800
push edx
call fcn.004ca690
lea eax, [esp + 0x48]
inc ebp
push eax
call fcn.00428020
lea ecx, [esp + 0x4c]
push ecx
call fcn.00428060
mov esi, eax
mov edi, str.__PATH_LIST_END
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__PATH_LIST_END
push esi
call fcn.004b6860
add esp, 0x20
test eax, eax
je 0x416306
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x416a3a
mov ecx, dword [esp + 0x18]
push esi
call fcn.00411cd0
push ebx
call fcn.004ca4f0
add esp, 4
test eax, eax
jne 0x416306
jmp 0x4169d5
mov edi, str.__MATCEN_LIST_START
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__MATCEN_LIST_START
push esi
call fcn.004b6860
add esp, 0xc
test eax, eax
jne 0x416aeb
mov ebx, dword [esp + 0x14]
push ebx
lea edx, [esp + 0x40]
push 0x800
push edx
call fcn.004ca690
lea eax, [esp + 0x48]
inc ebp
push eax
call fcn.00428020
lea ecx, [esp + 0x4c]
push ecx
call fcn.00428060
mov esi, eax
mov edi, str.__MATCEN_LIST_END
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__MATCEN_LIST_END
push esi
call fcn.004b6860
add esp, 0x20
test eax, eax
je 0x416306
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x416ad8
mov ecx, dword [esp + 0x18]
push esi
call fcn.00411e10
push ebx
call fcn.004ca4f0
add esp, 4
test eax, eax
jne 0x416306
jmp 0x416a73
mov edi, str.__GOAL_LIST_START
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__GOAL_LIST_START
push esi
call fcn.004b6860
add esp, 0xc
test eax, eax
jne 0x416b89
mov ebx, dword [esp + 0x14]
push ebx
lea edx, [esp + 0x40]
push 0x800
push edx
call fcn.004ca690
lea eax, [esp + 0x48]
inc ebp
push eax
call fcn.00428020
lea ecx, [esp + 0x4c]
push ecx
call fcn.00428060
mov esi, eax
mov edi, str.__GOAL_LIST_END
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__GOAL_LIST_END
push esi
call fcn.004b6860
add esp, 0x20
test eax, eax
je 0x416306
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x416b76
mov ecx, dword [esp + 0x18]
push esi
call fcn.00411f50
push ebx
call fcn.004ca4f0
add esp, 4
test eax, eax
jne 0x416306
jmp 0x416b11
mov edi, str.__STRM_AUDIO_LIST_START
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__STRM_AUDIO_LIST_START
push esi
call fcn.004b6860
add esp, 0xc
test eax, eax
jne 0x416c27
mov ebx, dword [esp + 0x14]
push ebx
lea edx, [esp + 0x40]
push 0x800
push edx
call fcn.004ca690
lea eax, [esp + 0x48]
inc ebp
push eax
call fcn.00428020
lea ecx, [esp + 0x4c]
push ecx
call fcn.00428060
mov esi, eax
mov edi, str.__STRM_AUDIO_LIST_END
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__STRM_AUDIO_LIST_END
push esi
call fcn.004b6860
add esp, 0x20
test eax, eax
je 0x416306
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x416c14
mov ecx, dword [esp + 0x18]
push esi
call fcn.00412090
push ebx
call fcn.004ca4f0
add esp, 4
test eax, eax
jne 0x416306
jmp 0x416baf
mov edi, str.__CHILD_BLOCK_START
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__CHILD_BLOCK_START
push esi
call fcn.004b6860
add esp, 0xc
test eax, eax
jne 0x416c7b
mov byte [esp + 0x1f], al
mov al, byte [esp + 0x13]
test al, al
jne 0x416c72
mov eax, dword [esp + 0x28]
test eax, eax
mov dword [esp + 0x20], eax
jne 0x416302
mov dword [esp + 0x20], 0xffff0000
jmp 0x416302
inc dword [esp + 0x24]
jmp 0x416302
mov edi, dword [esp + 0x28]
test edi, edi
je 0x416ca7
mov al, byte [esp + 0x1f]
test al, al
je 0x416ca7
mov ebx, dword [esp + 0x18]
push ebp
push edi
mov ecx, ebx
call fcn.00418cb0
push edi
mov ecx, ebx
call fcn.0040c7e0
mov byte [esp + 0x1f], 0
jmp 0x416cab
mov ebx, dword [esp + 0x18]
mov edi, str.__CHILD_BLOCK_END
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__CHILD_BLOCK_END
push esi
call fcn.004b6860
add esp, 0xc
test eax, eax
jne 0x416d54
mov al, byte [esp + 0x13]
test al, al
je 0x416ceb
mov eax, dword [esp + 0x24]
test eax, eax
jle 0x416ceb
dec eax
mov dword [esp + 0x24], eax
jmp 0x416302
mov esi, dword [esp + 0x20]
mov byte [esp + 0x13], 0
cmp esi, 0xffff0000
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], esi
jne 0x416d15
mov dword [esp + 0x28], 0
jmp 0x416302
push ebp
push esi
mov ecx, ebx
call fcn.00418cb0
push esi
mov ecx, ebx
call fcn.0040c7e0
mov edx, dword [ebx + 0x1816c]
push esi
push 3
push 0x110a
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
mov dword [esp + 0x20], eax
jne 0x416302
mov dword [esp + 0x20], 0xffff0000
jmp 0x416302
mov cl, byte [esp + 0x13]
test cl, cl
je 0x416d72
mov eax, dword [esp + 0x24]
test eax, eax
jg 0x416d72
xor cl, cl
mov dword [esp + 0x24], 0
mov byte [esp + 0x13], cl
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x416dec
lea eax, [esp + 0x34]
lea ecx, [esp + 0x83c]
push eax
push ecx
push str._s__d
push esi
call fcn.004b736f
add esp, 0x10
cmp eax, 2
jne 0x416302
mov esi, str.VERSION
lea eax, [esp + 0x83c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x416dd2
test cl, cl
je 0x416dce
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x416dd2
add eax, 2
add esi, 2
test cl, cl
jne 0x416daa
xor eax, eax
jmp 0x416dd7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x416302
mov dword [esp + 0x2c], 1
jmp 0x416302
cmp eax, 1
jne 0x416e62
add ebx, 0x78
lea eax, [esp + 0x83c]
push ebx
push eax
push str._s__d
push esi
call fcn.004b736f
add esp, 0x10
cmp eax, 2
jne 0x416302
mov esi, str.NEXT_ID
lea eax, [esp + 0x83c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x416e48
test cl, cl
je 0x416e44
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x416e48
add eax, 2
add esi, 2
test cl, cl
jne 0x416e20
xor eax, eax
jmp 0x416e4d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x416302
mov dword [esp + 0x2c], 2
jmp 0x416302
test cl, cl
jne 0x416302
mov eax, dword [esp + 0x34]
push 0xffff0002
cmp eax, 1
jl 0x416e8e
mov ecx, dword [esp + 0x24]
push eax
lea eax, [esp + 0x1b]
push eax
push ecx
push ebp
push esi
mov ecx, ebx
call fcn.00417c00
jmp 0x416ea1
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x17]
push edx
push eax
push ebp
push esi
mov ecx, ebx
call fcn.00416f80
test eax, eax
je 0x416ed4
push eax
mov ecx, ebx
mov dword [esp + 0x2c], eax
mov byte [esp + 0x23], 1
call fcn.0040c7e0
mov al, byte [esp + 0x13]
test al, al
je 0x416302
mov byte [esp + 0x13], 1
mov dword [esp + 0x24], 0
jmp 0x416302
push 0
push 0
push ebp
push 2
mov ecx, ebx
call fcn.00416010
mov byte [esp + 0x13], 1
mov dword [esp + 0x24], 0
jmp 0x416302
mov ecx, dword [esp + 0x18]
push 0
push 0
push ebp
push 0
call fcn.00416010
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004ca4f0
mov ebx, dword [esp + 0x1c]
add esp, 4
test eax, eax
je 0x41625f
mov esi, dword [esp + 0x14]
push esi
call fcn.004ca330
add esp, 4
mov ecx, ebx
call fcn.00423ea0
mov eax, 1
mov ecx, dword [esp + 0xa40]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa3c
ret 4
mov edx, dword [esp + 0xa50]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
push edx
push eax
push 0
call fcn.00413200
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004ca330
add esp, 4
xor eax, eax
jmp 0x416f36