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

Disassembly:
sub esp, 0xa0
push ebx
mov ebx, dword [0x6285c8]
push ebp
xor eax, eax
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], eax
push str..cfg
lea eax, [esp + 0x64]
push str.tile
mov ebp, ecx
push eax
call fcn.00415c00
mov ecx, dword [esp + 0x6c]
add esp, 0xc
mov eax, dword [ecx + 8]
cmp eax, ecx
mov dword [esp + 0x3c], eax
je 0x4d55e0
lea ecx, [esp + 0x20]
call fcn.0040ee20
lea ecx, [esp + 0x20]
call fcn.00416100
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx + 0x10]
lea ecx, [esp + 0x20]
push edx
call fcn.00415fc0
test al, al
je 0x4d55b1
lea eax, [esp + 0x30]
lea ecx, [esp + 0x20]
push eax
call fcn.004165e0
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
sub ecx, edx
xor esi, esi
sar ecx, 2
je 0x4d55a8
call dword [0x609ac0]
mov edx, dword [esp + 0x30]
mov eax, dword [edx + esi*4]
push eax
call fcn.005f099b
mov edx, dword [esp + 0x34]
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [edx + esi*4]
push ecx
push str.image
push eax
lea ecx, [esp + 0x2c]
call fcn.004169f0
test al, al
je 0x4d5716
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x14]
push ecx
push str.highlight
mov eax, dword [edx + esi*4]
lea ecx, [esp + 0x28]
push eax
call fcn.004169f0
test al, al
je 0x4d53e0
lea ecx, [esp + 0x10]
lea edi, [ebp + 0x1a8]
lea edx, [esp + 0x98]
push ecx
push edx
mov ecx, edi
call fcn.005d3390
mov eax, dword [eax]
lea ecx, [esp + 0x94]
push ecx
mov ecx, edi
mov dword [esp + 0x44], eax
call fcn.005d8060
mov edx, eax
mov eax, dword [esp + 0x40]
cmp eax, dword [edx]
je 0x4d5368
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + 0x10]
cmp ecx, edx
jge 0x4d53ac
lea edx, [esp + 0x78]
lea eax, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0xb0]
mov dword [esp + 0x80], 0
call fcn.004b87c0
push eax
push ecx
lea edx, [esp + 0x48]
mov ecx, esp
push edx
call fcn.005d82d0
lea eax, [esp + 0xa4]
mov ecx, edi
push eax
call fcn.00414580
mov eax, dword [eax]
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x2c]
lea edi, [eax + 0x14]
push ebx
mov eax, dword [edx + esi*4]
push ecx
push str.highopaque
push eax
lea ecx, [esp + 0x30]
call fcn.004169f0
mov edx, dword [esp + 0x18]
test al, al
sete cl
push ecx
push edx
call fcn.004d57c0
add esp, 0xc
mov dword [edi], eax
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x14]
push eax
push str.northgrid
mov edx, dword [ecx + esi*4]
lea ecx, [esp + 0x28]
push edx
call fcn.004169f0
test al, al
je 0x4d54bc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x80]
lea edi, [ebp + 0x1c0]
push eax
push ecx
mov ecx, edi
call fcn.005d3390
mov edx, dword [eax]
lea eax, [esp + 0x84]
push eax
mov ecx, edi
mov dword [esp + 0x1c], edx
call fcn.005d8060
mov ecx, eax
mov eax, dword [esp + 0x18]
cmp eax, dword [ecx]
je 0x4d5447
mov edx, dword [esp + 0x10]
mov ecx, dword [eax + 0x10]
cmp edx, ecx
jge 0x4d5488
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0xa8]
mov dword [esp + 0x74], 0
call fcn.004b87c0
push eax
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
push edx
call fcn.005d82d0
lea eax, [esp + 0x90]
mov ecx, edi
push eax
call fcn.00414580
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x2c]
lea edi, [eax + 0x14]
push ebx
mov eax, dword [edx + esi*4]
push ecx
push str.ngridopaque
push eax
lea ecx, [esp + 0x30]
call fcn.004169f0
mov edx, dword [esp + 0x18]
test al, al
sete cl
push ecx
push edx
call fcn.004d57c0
add esp, 0xc
mov dword [edi], eax
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x14]
push eax
push str.eastgrid
mov edx, dword [ecx + esi*4]
lea ecx, [esp + 0x28]
push edx
call fcn.004169f0
test al, al
je 0x4d5592
lea eax, [esp + 0x10]
lea ecx, [esp + 0x70]
lea edi, [ebp + 0x1cc]
push eax
push ecx
mov ecx, edi
call fcn.005d3390
mov edx, dword [eax]
lea eax, [esp + 0x74]
push eax
mov ecx, edi
mov dword [esp + 0x20], edx
call fcn.005d8060
mov ecx, eax
mov eax, dword [esp + 0x1c]
cmp eax, dword [ecx]
je 0x4d551d
mov edx, dword [esp + 0x10]
mov ecx, dword [eax + 0x10]
cmp edx, ecx
jge 0x4d555e
lea eax, [esp + 0x44]
lea ecx, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x94]
mov dword [esp + 0x4c], 0
call fcn.004b87c0
push eax
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
push edx
call fcn.005d82d0
lea eax, [esp + 0x84]
mov ecx, edi
push eax
call fcn.00414580
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x2c]
lea edi, [eax + 0x14]
push ebx
mov eax, dword [edx + esi*4]
push ecx
push str.egridopaque
push eax
lea ecx, [esp + 0x30]
call fcn.004169f0
mov edx, dword [esp + 0x18]
test al, al
sete cl
push ecx
push edx
call fcn.004d57c0
add esp, 0xc
mov dword [edi], eax
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
sub eax, edi
inc esi
sar eax, 2
cmp esi, eax
jb 0x4d52c4
lea ecx, [esp + 0x30]
call fcn.0040ee80
lea ecx, [esp + 0x20]
call fcn.00416100
lea ecx, [esp + 0x20]
call fcn.004c9fb0
lea ecx, [esp + 0x3c]
push ecx
call fcn.004149c0
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x64]
add esp, 4
cmp edx, eax
jne 0x4d5276
push str.fringe.cfg
lea ecx, [esp + 0x58]
call fcn.00415e80
lea eax, [esp + 0x48]
lea ecx, [esp + 0x54]
push eax
call fcn.004165e0
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
sub ecx, edx
xor esi, esi
sar ecx, 2
je 0x4d577a
call dword [0x609ac0]
mov edx, dword [esp + 0x48]
mov eax, dword [edx + esi*4]
push eax
call fcn.005f099b
mov edx, dword [esp + 0x4c]
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + esi*4]
push ecx
push str.image
push eax
lea ecx, [esp + 0x60]
call fcn.004169f0
test al, al
je 0x4d5737
lea ecx, [esp + 0x1c]
lea edi, [ebp + 0x1b4]
lea edx, [esp + 0x7c]
push ecx
push edx
mov ecx, edi
call fcn.005d3390
mov eax, dword [eax]
lea ecx, [esp + 0x74]
push ecx
mov ecx, edi
mov dword [esp + 0x1c], eax
call fcn.005d8060
mov edx, eax
mov eax, dword [esp + 0x18]
cmp eax, dword [edx]
je 0x4d568c
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax + 0x10]
cmp ecx, edx
jge 0x4d56ca
lea edx, [esp + 0x44]
lea eax, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x94]
mov dword [esp + 0x4c], 0
call fcn.004b87c0
push eax
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
push edx
call fcn.005d82d0
lea eax, [esp + 0x78]
mov ecx, edi
push eax
call fcn.00414580
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x2c]
lea edi, [eax + 0x14]
push ebx
mov eax, dword [edx + esi*4]
push ecx
push str.opaque
push eax
lea ecx, [esp + 0x64]
call fcn.004169f0
mov edx, dword [esp + 0x18]
test al, al
sete cl
push ecx
push edx
call fcn.004d57c0
mov dword [edi], eax
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x54]
add esp, 0xc
sub eax, edi
inc esi
sar eax, 2
cmp esi, eax
jb 0x4d5611
jmp 0x4d577a
lea ecx, [esp + 0x30]
call fcn.0040ee80
lea ecx, [esp + 0x20]
call fcn.00416100
lea ecx, [esp + 0x20]
call fcn.0040f0b0
lea ecx, [esp + 0x20]
jmp 0x4d5756
lea ecx, [esp + 0x48]
call fcn.0040ee80
lea ecx, [esp + 0x54]
call fcn.00416100
lea ecx, [esp + 0x54]
call fcn.0040f0b0
lea ecx, [esp + 0x54]
call fcn.00405f00
lea ecx, [esp + 0x60]
call fcn.00487440
lea ecx, [esp + 0x60]
call fcn.00449290
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
lea ecx, [esp + 0x48]
call fcn.0040ee80
lea ecx, [esp + 0x54]
call fcn.00416100
lea ecx, [esp + 0x54]
call fcn.004c9fb0
lea ecx, [esp + 0x60]
call fcn.00487440
lea ecx, [esp + 0x60]
call fcn.00449290
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xa0
ret