Function at 0x5d9ad0
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x74b239
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x104
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], vtable.CBSList_class_CFiresDef__.0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ebx
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x120], ebx
call fcn.005be330
mov eax, dword [esp + 0x3c]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x2c], eax
je 0x5d9b5e
lea ebp, [edi + 4]
mov ecx, dword [eax + 4]
mov edx, dword [ebp]
mov dword [esp + 0x2c], ecx
mov esi, dword [eax]
push esi
mov ecx, ebp
call dword [edx + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x5d9b56
mov edx, dword [edi + 0x18]
lea ecx, [edi + 0x18]
push esi
push eax
call dword [edx + 0xc]
mov eax, dword [esp + 0x2c]
cmp eax, ebx
jne 0x5d9b32
lea ecx, [esp + 0xcc]
call fcn.004049b0
push str.defs_defs.in2
lea ecx, [esp + 0xd0]
mov byte [esp + 0x120], 1
call fcn.00403a50
test eax, eax
jne 0x5d9bd8
push str.files
push ebx
lea ecx, [esp + 0xd4]
call fcn.00402f30
push eax
lea ecx, [esp + 0xd0]
call fcn.004030f0
mov esi, eax
cmp esi, ebx
je 0x5d9bd8
lea esp, [esp]
push esi
lea ecx, [esp + 0xd0]
call fcn.00402f50
push eax
mov ecx, edi
call fcn.005cc4c0
push esi
lea ecx, [esp + 0xd0]
call fcn.00403110
mov esi, eax
cmp esi, ebx
jne 0x5d9bb0
mov eax, dword [edi + 4]
lea ebp, [edi + 4]
mov ecx, ebp
call dword [eax + 0x2c]
cmp eax, ebx
mov dword [esp + 0x2c], eax
je 0x5d9c4c
jmp 0x5d9bf0
mov edx, dword [ebp]
lea eax, [esp + 0x2c]
push eax
mov ecx, ebp
call dword [edx + 0x34]
mov esi, dword [eax]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xc]
push ebx
push 0x85e8ec
push 0x85e1c8
push ebx
push esi
call fcn.0071f44c
mov edi, eax
add esp, 0x14
cmp edi, ebx
je 0x5d9c42
mov esi, dword [esp + 0x10]
mov ebx, dword [esi + 0xe7c4]
add esi, 0xe7c4
mov eax, ebx
mov ecx, esi
call dword [eax + 0xc]
push eax
mov ecx, esi
call dword [ebx + 0x14]
mov dword [eax], edi
xor ebx, ebx
cmp dword [esp + 0x2c], ebx
jne 0x5d9bf0
mov edi, dword [esp + 0x10]
mov dword [esp + 0x14], vtable.CBArray_struct_TZoneCost_.0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x28]
push ecx
push 0xd0003
push str.defs_structures_Structure_Price.txt
mov byte [esp + 0x128], 2
mov dword [0x91429c], ebx
call fcn.00401710
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x5d9cb4
lea edx, [esp + 0x14]
push edx
push 0x5d5c30
push 9
push esi
call fcn.0040bf50
add esp, 0x10
mov dword [esp + 0x28], eax
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
xor ebp, ebp
cmp dword [esp + 0x24], ebx
jbe 0x5d9df9
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], ecx
push ebp
lea ecx, [esp + 0x18]
mov word [esp + 0xc4], bx
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], ebx
call dword [edx + 0x14]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.0071e658
mov edx, dword [esp + 0x1c]
add esp, 8
push ebp
lea ecx, [esp + 0x18]
call dword [edx + 0x14]
mov esi, eax
add esi, 0x68
xor edi, edi
nop
mov eax, dword [esi + edi*4]
push eax
push edi
lea ecx, [esp + 0xb0]
call fcn.006af6b0
add edi, 1
cmp edi, 6
jl 0x5d9d30
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0xc4], ecx
mov edx, dword [esi + 0x20]
mov dword [esp + 0xc8], edx
sub esp, 0x88
mov eax, esp
mov edi, eax
mov ecx, 0x19
lea esi, [esp + 0xcc]
rep movsd dword es:[edi], dword [esi]
mov word [eax + 0x7c], bx
mov ecx, dword [esp + 0x130]
mov dword [eax + 0x64], ecx
mov edx, dword [esp + 0x134]
mov dword [eax + 0x68], edx
mov ecx, dword [esp + 0x138]
mov dword [eax + 0x6c], ecx
mov edx, dword [esp + 0x13c]
mov dword [eax + 0x70], edx
mov ecx, dword [esp + 0x140]
mov dword [eax + 0x74], ecx
mov edx, dword [esp + 0x144]
mov dword [eax + 0x78], edx
mov ecx, dword [esp + 0x14c]
mov dword [eax + 0x80], ecx
mov edx, dword [esp + 0x150]
mov ecx, dword [esp + 0x98]
add ecx, 0xe728
mov dword [eax + 0x84], edx
mov eax, dword [ecx]
mov dword [esp + 0xb0], esp
call dword [eax + 8]
add ebp, 1
cmp ebp, dword [esp + 0x24]
jb 0x5d9cc0
mov edi, dword [esp + 0x10]
push ebx
lea ecx, [esp + 0x18]
call fcn.005d7f60
lea ecx, [esp + 0x28]
push ecx
push 0xd0003
push 0x7d9564
mov dword [0x91429c], 1
call fcn.00401710
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x5d9e4b
lea edx, [esp + 0x14]
push edx
push 0x5d5c30
push 9
push esi
call fcn.0040bf50
add esp, 0x10
mov dword [esp + 0x28], eax
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
xor ebp, ebp
cmp dword [esp + 0x24], ebx
jbe 0x5d9fe3
mov edx, dword [esp + 0x14]
push ebp
lea ecx, [esp + 0x18]
call dword [edx + 0x14]
cmp word [eax], bx
je 0x5d9fd6
mov eax, dword [esp + 0x14]
push ebp
lea ecx, [esp + 0x18]
call dword [eax + 0x14]
push str.castle
push eax
call fcn.00734cec
mov edx, dword [esp + 0x1c]
add esp, 8
test eax, eax
lea ecx, [esp + 0x14]
push ebp
jne 0x5d9f85
call dword [edx + 0x14]
mov esi, eax
add esi, 0x68
lea ebx, [edi + 0xe750]
xor edi, edi
mov eax, dword [esi + edi*4]
push eax
push edi
mov ecx, ebx
call fcn.006af6b0
add edi, 1
cmp edi, 6
jl 0x5d9ea7
mov ecx, dword [esi + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x1c], ecx
mov edx, dword [esi + 0x20]
push ebp
lea ecx, [esp + 0x18]
mov dword [ebx + 0x20], edx
call dword [eax + 0x14]
mov ebx, dword [esp + 0x10]
mov esi, eax
add esi, 0x8c
add ebx, 0xe774
xor edi, edi
mov ecx, dword [esi + edi*4]
push ecx
push edi
mov ecx, ebx
call fcn.006af6b0
add edi, 1
cmp edi, 6
jl 0x5d9ee7
mov edx, dword [esi + 0x1c]
mov dword [ebx + 0x1c], edx
mov eax, dword [esi + 0x20]
mov edx, dword [esp + 0x14]
push ebp
lea ecx, [esp + 0x18]
mov dword [ebx + 0x20], eax
call dword [edx + 0x14]
mov ebx, dword [esp + 0x10]
mov esi, eax
add esi, 0xb0
add ebx, 0xe798
xor edi, edi
mov eax, dword [esi + edi*4]
push eax
push edi
mov ecx, ebx
call fcn.006af6b0
add edi, 1
cmp edi, 6
jl 0x5d9f27
mov ecx, dword [esi + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x1c], ecx
mov edx, dword [esi + 0x20]
push ebp
lea ecx, [esp + 0x18]
mov dword [ebx + 0x20], edx
call dword [eax + 0x14]
mov ecx, dword [eax + 0xe0]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add eax, 0xd4
mov dword [esi + 0xe7bc], ecx
push ebp
lea ecx, [esp + 0x18]
call dword [edx + 0x14]
add eax, 0xd4
mov eax, dword [eax]
mov dword [esi + 0xe7c0], eax
xor ebx, ebx
jmp 0x5d9fd2
call dword [edx + 0x14]
push eax
call fcn.006d5b20
add esp, 4
mov si, ax
mov eax, dword [esp + 0x14]
push ebp
lea ecx, [esp + 0x18]
call dword [eax + 0x14]
mov word [eax + 0x64], si
mov edx, dword [esp + 0x14]
lea esi, [edi + 0xe73c]
mov edi, dword [esi]
push ebp
lea ecx, [esp + 0x18]
call dword [edx + 0x14]
sub esp, 0xf8
mov ecx, esp
mov dword [esp + 0x120], esp
push eax
call fcn.005d4750
mov ecx, esi
call dword [edi + 8]
mov edi, dword [esp + 0x10]
add ebp, 1
cmp ebp, dword [esp + 0x24]
jb 0x5d9e57
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov byte [esp + 0x11c], 1
mov dword [esp + 0x14], vtable.CBArray_struct_TZoneCost_.0
je 0x5da004
push eax
call fcn.0040fa80
add esp, 4
lea ecx, [esp + 0xcc]
mov byte [esp + 0x11c], 0
call fcn.004049f0
mov dword [esp + 0x30], vtable.CBSList_class_CFiresDef__.0
mov eax, dword [esp + 0x38]
cmp eax, ebx
mov dword [esp + 0x11c], 3
je 0x5da04e
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x38], ecx
push eax
lea ecx, [esp + 0x34]
call dword [edx + 0x64]
mov eax, dword [esp + 0x38]
cmp eax, ebx
jne 0x5da033
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x110
ret