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

Disassembly:
jmp 0x40d170
push 0xffffffffffffffff
push 0x496e6e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc8
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor edi, edi
push edi
lea ecx, [esp + 0x78]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x14], edi
call fcn.0040131b
push ebp
push 0xcc
lea ecx, [esp + 0x7c]
mov dword [esp + 0xe8], edi
call fcn.0046994c
push edi
lea ecx, [esp + 0x78]
call fcn.0046e4bc
mov ecx, dword [esp + 0x90]
lea eax, [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x4c]
call fcn.004328e9
lea edx, [ebp + 0x60]
push str.ScnR.Bmp
lea eax, [esp + 0x18]
push edx
push eax
mov byte [esp + 0xec], 1
call fcn.0046f486
mov eax, dword [eax]
push edi
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0xe8], 2
call fcn.004329ac
mov esi, eax
lea ecx, [esp + 0x14]
cmp esi, edi
mov byte [esp + 0xe0], 1
sete bl
call fcn.0046f1f1
test bl, bl
je 0x40d27c
push edi
push edi
push str.Scenario_file_not_found_
call fcn.0047bcca
lea ecx, [esp + 0x4c]
mov byte [esp + 0xe0], 0
call fcn.00432926
lea ecx, [esp + 0xd0]
mov dword [esp + 0xe0], 3
call fcn.0046f1f1
lea ecx, [esp + 0x74]
mov dword [esp + 0xe0], 0xffffffff
call fcn.0046990e
xor eax, eax
jmp 0x40d836
cmp esi, edi
je 0x40d4df
mov bl, 6
lea ecx, [esp + 0x4c]
call fcn.00432bcc
mov edx, dword [esp + 0x4c]
push 0x10
lea ecx, [esp + 0x50]
mov edi, eax
call dword [edx + 0x38]
xor esi, esi
cmp eax, esi
jne 0x40d4ba
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
sub ecx, eax
push 2
add ecx, 0xf
push 0x2c
push ecx
push edx
push eax
push 0x4b95e0
lea ecx, [esp + 0x8c]
call fcn.0046b704
push esi
lea ecx, [esp + 0x78]
call fcn.0046e4bc
push 5
lea ecx, [esp + 0x78]
call fcn.0046b753
lea eax, [esp + 0x18]
lea ecx, [esp + 0x4c]
push eax
call fcn.00432d33
push eax
lea ecx, [esp + 0x18]
push str.Loading_for_Scenario_:
push ecx
mov byte [esp + 0xec], 4
call fcn.0046f4fa
push eax
lea ecx, [esp + 0xd4]
mov byte [esp + 0xe4], 5
call fcn.0046f32a
push esi
lea ecx, [esp + 0x78]
call fcn.0046e404
lea ecx, [esp + 0x14]
mov byte [esp + 0xe0], 4
call fcn.0046f1f1
lea ecx, [esp + 0x18]
mov byte [esp + 0xe0], 1
call fcn.0046f1f1
push 8
call fcn.0046b2c2
add esp, 4
cmp eax, esi
je 0x40d366
mov dword [eax + 4], esi
mov dword [eax], 0x49b5a0
mov esi, eax
push ecx
lea ecx, [esp + 0x50]
mov edx, esp
mov dword [esp + 0x74], esp
push edx
call fcn.00432c9b
push esi
mov ecx, ebp
call fcn.004010dc
test eax, eax
jne 0x40d3da
lea eax, [esp + 0x24]
lea ecx, [esp + 0x4c]
push eax
call fcn.00432c9b
push str._is_failed
lea ecx, [esp + 0x34]
push eax
push ecx
mov byte [esp + 0xec], bl
call fcn.0046f486
mov eax, dword [eax]
push 0
push 0
push eax
mov byte [esp + 0xec], 7
call fcn.0047bcca
lea ecx, [esp + 0x30]
mov byte [esp + 0xe0], bl
call fcn.0046f1f1
mov byte [esp + 0xe0], 1
lea ecx, [esp + 0x24]
jmp 0x40d454
mov ecx, dword [esi + 4]
lea eax, [esp + 0x68]
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetBitmapDimensionEx]
cmp dword [esp + 0x68], 0xc8
jne 0x40d3fd
cmp dword [esp + 0x6c], 0x96
je 0x40d468
lea edx, [esp + 0x20]
lea ecx, [esp + 0x4c]
push edx
call fcn.00432c9b
push str._is_invalid
push eax
lea eax, [esp + 0x34]
mov byte [esp + 0xe8], 8
push eax
call fcn.0046f486
mov eax, dword [eax]
push 0
push 0
push eax
mov byte [esp + 0xec], 9
call fcn.0047bcca
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe0], 8
call fcn.0046f1f1
mov byte [esp + 0xe0], 1
lea ecx, [esp + 0x20]
call fcn.0046f1f1
test esi, esi
je 0x40d4ba
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
jmp 0x40d4ba
mov eax, dword [ebp + 0x4064]
cmp eax, 0x800
jge 0x40d4c4
mov dword [ebp + eax*4 + 0x64], esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x50]
call fcn.00432d33
mov edx, dword [ebp + 0x4064]
push eax
mov byte [esp + 0xe4], 0xa
lea ecx, [ebp + edx*4 + 0x2064]
inc edx
mov dword [ebp + 0x4064], edx
call fcn.0046f32a
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe0], 1
call fcn.0046f1f1
test edi, edi
jne 0x40d286
jmp 0x40d4df
push 0
push 0
push str.Number_of_Scenario_is_over_maximum_size
call fcn.0047bcca
test esi, esi
je 0x40d4df
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
mov eax, dword [0x4aef28]
mov dword [esp + 0x34], eax
mov ecx, dword [ebp + 0x4064]
lea edx, [esp + 0x34]
push ecx
push 0x4ae060
push edx
mov byte [esp + 0xec], 0xb
call fcn.0046361c
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
add esp, 0xc
sub ecx, eax
push 2
add ecx, 0xf
push 0x2c
push ecx
push edx
push eax
push 0x4b95e0
lea ecx, [esp + 0x8c]
call fcn.0046b704
push 0
lea ecx, [esp + 0x78]
call fcn.0046e4bc
push 5
lea ecx, [esp + 0x78]
call fcn.0046b753
lea eax, [esp + 0x34]
lea ecx, [esp + 0x20]
push eax
push str.Sorting_Scenario_of_total
push ecx
call fcn.0046f4fa
push 0x4ae668
lea edx, [esp + 0x20]
mov bl, 0xc
push eax
push edx
mov byte [esp + 0xec], bl
call fcn.0046f486
push eax
lea ecx, [esp + 0xd4]
mov byte [esp + 0xe4], 0xd
call fcn.0046f32a
push 0
lea ecx, [esp + 0x78]
call fcn.0046e404
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe0], bl
call fcn.0046f1f1
lea ecx, [esp + 0x20]
mov byte [esp + 0xe0], 0xb
call fcn.0046f1f1
mov eax, dword [0x4aef28]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x4064]
mov byte [esp + 0xe0], 0xe
mov dword [esp + 0x14], 0
lea ecx, [eax - 1]
test ecx, ecx
jle 0x40d7c8
add ebp, 0x2064
mov edx, dword [esp + 0x14]
lea ecx, [edx + 1]
cmp ecx, eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x18], ecx
jge 0x40d7ac
lea edi, [ebp + 4]
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x40d60c
mov esi, ebp
jmp 0x40d62e
push 0x4b4a80
lea ecx, [esp + 0x24]
call fcn.0046f25f
mov esi, eax
mov eax, dword [esp + 0x10]
or al, 1
mov dword [esp + 0x10], eax
mov byte [esp + 0xe0], 0xf
mov eax, dword [esp + 0x18]
test eax, eax
jl 0x40d63a
mov eax, edi
jmp 0x40d64d
push 0x4b4a80
lea ecx, [esp + 0x20]
call fcn.0046f25f
or dword [esp + 0x10], 2
mov ecx, dword [esi]
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
mov al, byte [esp + 0x10]
setl bl
test al, 2
je 0x40d679
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
and al, 0xfd
mov dword [esp + 0x10], eax
call fcn.0046f1f1
mov al, byte [esp + 0x10]
mov dword [esp + 0xe0], 0xe
test al, 1
je 0x40d69f
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x20]
and al, 0xfe
mov dword [esp + 0x10], eax
call fcn.0046f1f1
test bl, bl
je 0x40d78c
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x40d6b7
mov esi, dword [ebp - 0x2000]
jmp 0x40d6b9
xor esi, esi
test eax, eax
jl 0x40d6c1
mov eax, ebp
jmp 0x40d6dc
push 0x4b4a80
lea ecx, [esp + 0x28]
call fcn.0046f25f
or dword [esp + 0x10], 4
mov byte [esp + 0xe0], 0x10
push eax
lea ecx, [esp + 0x2c]
call fcn.0046f32a
mov ebx, dword [esp + 0x18]
test ebx, ebx
jl 0x40d6f6
mov eax, dword [edi - 0x2000]
jmp 0x40d6f8
xor eax, eax
mov dword [ebp - 0x2000], eax
mov dword [edi - 0x2000], esi
test ebx, ebx
jl 0x40d70c
mov eax, edi
jmp 0x40d72a
push 0x4b4a80
lea ecx, [esp + 0x30]
call fcn.0046f25f
or dword [esp + 0x10], 8
mov dword [esp + 0xe0], 0x11
push eax
mov ecx, ebp
call fcn.0046f32a
lea eax, [esp + 0x28]
mov ecx, edi
push eax
call fcn.0046f32a
mov al, byte [esp + 0x10]
mov dword [esp + 0xe0], 0x10
test al, 8
je 0x40d764
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
and al, 0xf7
mov dword [esp + 0x10], eax
call fcn.0046f1f1
mov al, byte [esp + 0x10]
mov dword [esp + 0xe0], 0xe
test al, 4
je 0x40d790
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x24]
and al, 0xfb
mov dword [esp + 0x10], eax
call fcn.0046f1f1
jmp 0x40d790
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
inc ebx
add edi, 4
mov dword [esp + 0x18], ebx
cmp ebx, dword [ecx + 0x4064]
jl 0x40d600
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
add ebp, 4
mov dword [esp + 0x14], ecx
mov eax, dword [edx + 0x4064]
lea edx, [eax - 1]
cmp ecx, edx
jl 0x40d5e6
push 0
lea ecx, [esp + 0x78]
call fcn.0046b753
lea ecx, [esp + 0x28]
mov byte [esp + 0xe0], 0xb
call fcn.0046f1f1
lea ecx, [esp + 0x34]
mov byte [esp + 0xe0], 1
call fcn.0046f1f1
lea ecx, [esp + 0x4c]
mov byte [esp + 0xe0], 0
call fcn.00432926
lea ecx, [esp + 0xd0]
mov dword [esp + 0xe0], 0x12
call fcn.0046f1f1
lea ecx, [esp + 0x74]
mov dword [esp + 0xe0], 0xffffffff
call fcn.0046990e
mov eax, 1
mov ecx, dword [esp + 0xd8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xd4
ret