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

Disassembly:
push 0xffffffffffffffff
push 0x53080f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x46c
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], esi
call fcn.0050b471
mov eax, dword [esi + 0x388]
push str.plan_r2.txt
add eax, 4
lea ecx, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x48c], 0
call fcn.00509a80
mov edx, dword [esi + 0x388]
mov edi, dword [eax]
add edx, 4
push str.plan_r1.txt
lea eax, [esp + 0x18]
push edx
push eax
mov byte [esp + 0x48c], 1
call fcn.00509a80
mov eax, dword [eax]
push 0
push edi
mov edi, dword [0x534458]
push eax
call edi
lea ecx, [esp + 0x14]
call fcn.005097eb
lea ecx, [esp + 0x18]
mov byte [esp + 0x480], 0
call fcn.005097eb
mov ecx, dword [esi + 0x388]
push str.plan_r1.txt
add ecx, 4
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.00509a80
mov ebx, dword [eax]
mov eax, dword [esi + 0x388]
add eax, 4
push str.plan.txt
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x48c], 2
call fcn.00509a80
mov eax, dword [eax]
push 0
push ebx
push eax
call edi
lea ecx, [esp + 0x14]
call fcn.005097eb
lea ecx, [esp + 0x18]
mov byte [esp + 0x480], 0
call fcn.005097eb
mov edx, dword [esi + 0x388]
push str.plan.txt
add edx, 4
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00509a80
mov eax, dword [eax]
push 0
push 0x1001
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x48c], 3
call fcn.0050b4e6
test eax, eax
sete bl
lea ecx, [esp + 0x14]
mov byte [esp + 0x480], 0
call fcn.005097eb
test bl, bl
jne 0x4d2ee7
push str.ver54_n
lea ecx, [esp + 0x20]
call fcn.0050b659
mov ecx, dword [0x565124]
mov dword [esp + 0x10], ecx
mov eax, dword [esi + 0xad0]
mov ebx, 1
cmp eax, ebx
mov byte [esp + 0x480], 4
jle 0x4d2ecd
mov edi, 0x1c
push ebp
lea ebp, [esi + 0x9a8]
mov dword [esp + 0x18], edi
push 1
lea edx, [esp + 0x4c]
push ebx
push edx
mov ecx, ebp
call fcn.00481580
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x488], 5
call fcn.00509924
lea ecx, [esp + 0x48]
mov byte [esp + 0x484], 4
call fcn.005097eb
lea eax, [esp + 0x14]
push 0x55f120
lea ecx, [esp + 0x54]
push eax
push ecx
call fcn.00509a80
mov eax, dword [eax]
lea ecx, [esp + 0x20]
push eax
mov byte [esp + 0x488], 6
call fcn.0050b659
lea ecx, [esp + 0x50]
mov byte [esp + 0x484], 4
call fcn.005097eb
test ebx, ebx
jl 0x4d2921
cmp ebx, dword [ebp + 0x128]
jge 0x4d2921
mov eax, dword [ebp + 0x130]
mov edx, 3
cmp eax, edx
jle 0x4d2921
mov eax, dword [ebp + 0xb8]
test eax, eax
je 0x4d2903
mov eax, dword [ebp + 0x134]
mov edi, dword [ebp + 0x12c]
xor ecx, ecx
cmp eax, edx
setg cl
xor eax, eax
cmp ebx, edi
setl al
test eax, eax
je 0x4d26a5
test ecx, ecx
je 0x4d269d
lea esi, [ebp + 0x25c]
mov dword [esp + 0x10], esi
jmp 0x4d26c3
lea eax, [ebp + 0x20c]
jmp 0x4d26bb
test ecx, ecx
je 0x4d26b5
lea ecx, [ebp + 0x1bc]
mov dword [esp + 0x10], ecx
jmp 0x4d26bf
lea eax, [ebp + 0x16c]
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x10]
mov al, byte [0x5bbb90]
test al, 1
jne 0x4d26f3
mov dl, al
mov ecx, 0x5bbba0
or dl, 1
mov byte [0x5bbb90], dl
call fcn.0046f150
push 0x46f140
call fcn.004f163d
add esp, 4
mov edx, 3
mov dword [0x5bbbac], ebx
mov dword [0x5bbbb0], edx
mov dword [0x5bbbb4], 0xffffffff
mov dword [0x5bbbb8], 0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x4c]
mov dword [0x5bbbbc], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x40]
mov dword [0x5bbbc0], eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
mov dword [0x5bbbc4], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x50]
mov dword [0x5bbbc8], eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x44]
mov dword [0x5bbbcc], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, 0xf
mov esi, eax
mov edi, 0x5bbbd0
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
call dword [edx + 0x68]
mov ecx, 0x5bbc10
mov dword [0x5bbc0c], eax
call fcn.00509776
mov esi, 3
mov ecx, ebp
push esi
push ebx
call fcn.0047b500
test eax, eax
je 0x4d279a
mov eax, dword [0x5bbbb8]
or al, 2
mov dword [0x5bbbb8], eax
cmp ebx, dword [ebp + 0x12c]
jge 0x4d27ae
mov eax, dword [0x5bbbb8]
or al, 0x30
mov dword [0x5bbbb8], eax
cmp dword [ebp + 0x134], esi
jle 0x4d27c2
mov eax, dword [0x5bbbb8]
or al, 0x50
mov dword [0x5bbbb8], eax
mov ecx, dword [ebp + 0x2fc]
mov eax, dword [ebp + 0x2f8]
lea edx, [esp + 0x58]
mov dword [esp + 0x6c], ecx
push edx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], esi
mov dword [esp + 0x6c], eax
call fcn.0046f0c0
test eax, eax
je 0x4d27fc
mov eax, dword [0x5bbbb8]
or al, 1
mov dword [0x5bbbb8], eax
mov al, byte [ebp + 0x458]
test al, al
jne 0x4d2855
mov eax, dword [ebp + 0x430]
mov eax, dword [eax + ebx*4]
mov dword [0x5bbbac], eax
mov eax, dword [ebp + 0x440]
mov ecx, dword [eax + 0xc]
mov dword [0x5bbbb0], ecx
mov eax, dword [ebp + 0xc0]
test eax, eax
je 0x4d283d
mov edx, dword [ebp + 0xbc]
push edx
push 0x5bbba0
call eax
jmp 0x4d2849
push 0x5bbba0
mov ecx, ebp
call fcn.00470d90
mov dword [0x5bbbac], ebx
mov dword [0x5bbbb0], esi
mov al, byte [0x5bbb90]
test al, 2
jne 0x4d2880
mov dl, al
mov ecx, 0x5bbc20
or dl, 2
mov byte [0x5bbb90], dl
call fcn.0046c270
push 0x46f130
call fcn.004f163d
add esp, 4
mov ecx, dword [0x5bbbbc]
mov eax, dword [0x5bbbb8]
mov edx, dword [0x5bbbc0]
mov dword [0x5bbc3c], ecx
mov ecx, dword [0x5bbbc8]
mov dword [0x5bbc2c], eax
mov eax, dword [0x5bbbc4]
mov dword [0x5bbc38], edx
mov edx, dword [0x5bbbcc]
mov dword [0x5bbc40], ecx
push 0x5bbbd0
mov ecx, 0x5bbc20
mov dword [0x5bbc44], eax
mov dword [0x5bbc34], edx
call fcn.0046c570
mov ecx, dword [0x5bbc10]
mov eax, dword [0x5bbc0c]
push ecx
mov ecx, 0x5bbc30
mov dword [0x5bbc4c], eax
call fcn.00509974
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x18]
mov dword [0x5bbc54], ebp
mov ecx, 0x5bbc20
jmp 0x4d2923
mov edx, dword [ebp + 0x2bc]
mov eax, dword [edx + ebx*4]
test eax, eax
je 0x4d2921
mov ecx, dword [ebp + 0x440]
mov edx, dword [eax + 4]
mov ecx, dword [ecx + 0xc]
mov ecx, dword [edx + ecx*4]
jmp 0x4d2923
xor ecx, ecx
mov eax, dword [ecx]
call dword [eax + 0x44]
cmp eax, 0x2ee
mov dword [esp + 0x10], eax
jl 0x4d293c
sub eax, 0x2ee
mov dword [esp + 0x10], eax
push eax
lea ecx, [esp + 0x7c]
push str._1d_n
push ecx
call fcn.004f0f4c
add esp, 0xc
lea edx, [esp + 0x78]
lea ecx, [esp + 0x20]
push edx
call fcn.0050b659
push ebx
mov ecx, esi
call fcn.004cfcc0
push eax
lea eax, [esp + 0x7c]
push 0x563f40
push eax
call fcn.004f0f4c
add esp, 0xc
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x24]
call fcn.0050b659
test ebx, ebx
jl 0x4d2c2f
cmp ebx, dword [ebp + 0x128]
jge 0x4d2c2f
mov eax, dword [ebp + 0x130]
test eax, eax
jle 0x4d2c2f
mov eax, dword [ebp + 0xb8]
test eax, eax
je 0x4d2c12
mov edi, dword [ebp + 0x134]
xor edx, edx
test edi, edi
setg dl
push edx
mov edx, dword [ebp + 0x12c]
xor eax, eax
cmp ebx, edx
setl al
push eax
mov ecx, ebp
call fcn.0046f0f0
mov esi, eax
mov al, byte [0x5bbb90]
test al, 1
mov dword [esp + 0x4c], esi
jne 0x4d2a0a
mov dl, al
mov ecx, 0x5bbba0
or dl, 1
mov byte [0x5bbb90], dl
call fcn.0046f150
push 0x46f140
call fcn.004f163d
add esp, 4
xor eax, eax
mov dword [0x5bbbac], ebx
mov dword [0x5bbbb0], eax
mov dword [0x5bbbb4], 0xffffffff
mov dword [0x5bbbb8], eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x4c]
mov dword [0x5bbbbc], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x40]
mov dword [0x5bbbc0], eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
mov dword [0x5bbbc4], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x50]
mov dword [0x5bbbc8], eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x44]
mov dword [0x5bbbcc], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, 0xf
mov esi, eax
mov edi, 0x5bbbd0
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx]
call dword [edx + 0x68]
mov ecx, 0x5bbc10
mov dword [0x5bbc0c], eax
call fcn.00509776
xor esi, esi
mov ecx, ebp
push esi
push ebx
call fcn.0047b500
test eax, eax
je 0x4d2aaa
mov eax, dword [0x5bbbb8]
or al, 2
mov dword [0x5bbbb8], eax
cmp ebx, dword [ebp + 0x12c]
jge 0x4d2abe
mov eax, dword [0x5bbbb8]
or al, 0x30
mov dword [0x5bbbb8], eax
cmp dword [ebp + 0x134], esi
jle 0x4d2ad2
mov eax, dword [0x5bbbb8]
or al, 0x50
mov dword [0x5bbbb8], eax
mov ecx, dword [ebp + 0x2fc]
mov eax, dword [ebp + 0x2f8]
lea edx, [esp + 0x70]
mov dword [esp + 0x64], ecx
push edx
lea ecx, [esp + 0x64]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], esi
mov dword [esp + 0x64], eax
call fcn.0046f0c0
test eax, eax
je 0x4d2b0c
mov eax, dword [0x5bbbb8]
or al, 1
mov dword [0x5bbbb8], eax
mov al, byte [ebp + 0x458]
test al, al
jne 0x4d2b64
mov eax, dword [ebp + 0x430]
mov eax, dword [eax + ebx*4]
mov dword [0x5bbbac], eax
mov eax, dword [ebp + 0x440]
mov ecx, dword [eax]
mov dword [0x5bbbb0], ecx
mov eax, dword [ebp + 0xc0]
cmp eax, esi
je 0x4d2b4c
mov edx, dword [ebp + 0xbc]
push edx
push 0x5bbba0
call eax
jmp 0x4d2b58
push 0x5bbba0
mov ecx, ebp
call fcn.00470d90
mov dword [0x5bbbac], ebx
mov dword [0x5bbbb0], esi
mov al, byte [0x5bbb90]
test al, 2
jne 0x4d2b8f
mov dl, al
mov ecx, 0x5bbc20
or dl, 2
mov byte [0x5bbb90], dl
call fcn.0046c270
push 0x46f130
call fcn.004f163d
add esp, 4
mov ecx, dword [0x5bbbbc]
mov eax, dword [0x5bbbb8]
mov edx, dword [0x5bbbc0]
mov dword [0x5bbc3c], ecx
mov ecx, dword [0x5bbbc8]
mov dword [0x5bbc2c], eax
mov eax, dword [0x5bbbc4]
mov dword [0x5bbc38], edx
mov edx, dword [0x5bbbcc]
mov dword [0x5bbc40], ecx
push 0x5bbbd0
mov ecx, 0x5bbc20
mov dword [0x5bbc44], eax
mov dword [0x5bbc34], edx
call fcn.0046c570
mov ecx, dword [0x5bbc10]
mov eax, dword [0x5bbc0c]
push ecx
mov ecx, 0x5bbc30
mov dword [0x5bbc4c], eax
call fcn.00509974
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x18]
mov dword [0x5bbc54], ebp
mov ecx, 0x5bbc20
jmp 0x4d2c31
mov edx, dword [ebp + 0x2bc]
mov eax, dword [edx + ebx*4]
test eax, eax
je 0x4d2c2f
mov ecx, dword [ebp + 0x440]
mov edx, dword [eax + 4]
mov ecx, dword [ecx]
mov ecx, dword [edx + ecx*4]
jmp 0x4d2c31
xor ecx, ecx
call fcn.0046e540
test eax, eax
je 0x4d2c41
push 0x55e2c8
jmp 0x4d2c46
push 0x55f21c
lea ecx, [esp + 0x18]
call fcn.00509974
lea eax, [esp + 0x14]
push 0x55f120
lea ecx, [esp + 0x58]
push eax
push ecx
call fcn.00509a80
mov eax, dword [eax]
lea ecx, [esp + 0x20]
push eax
mov byte [esp + 0x488], 7
call fcn.0050b659
lea ecx, [esp + 0x54]
mov byte [esp + 0x484], 4
call fcn.005097eb
push 4
push ebx
mov ecx, ebp
call fcn.004737a0
add eax, 0x3c
lea edx, [esp + 0x78]
mov eax, dword [eax]
push eax
push 0x563f40
push edx
call fcn.004f0f4c
add esp, 0xc
lea eax, [esp + 0x78]
lea ecx, [esp + 0x20]
push eax
call fcn.0050b659
push 5
push ebx
mov ecx, ebp
call fcn.004737a0
add eax, 0x3c
lea ecx, [esp + 0x78]
mov eax, dword [eax]
push eax
push 0x563f40
push ecx
call fcn.004f0f4c
add esp, 0xc
lea edx, [esp + 0x78]
lea ecx, [esp + 0x20]
push edx
call fcn.0050b659
push 6
lea eax, [esp + 0x3c]
push ebx
push eax
mov ecx, ebp
call fcn.00481580
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x488], 8
call fcn.00509924
lea ecx, [esp + 0x38]
mov byte [esp + 0x484], 4
call fcn.005097eb
lea ecx, [esp + 0x14]
push 0x55f120
lea edx, [esp + 0x44]
push ecx
push edx
call fcn.00509a80
mov eax, dword [eax]
lea ecx, [esp + 0x20]
push eax
mov byte [esp + 0x488], 9
call fcn.0050b659
lea ecx, [esp + 0x40]
mov byte [esp + 0x484], 4
call fcn.005097eb
push 7
push ebx
lea eax, [esp + 0x4c]
push eax
mov ecx, ebp
call fcn.00481580
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x488], 0xa
call fcn.00509924
lea ecx, [esp + 0x44]
mov byte [esp + 0x484], 4
call fcn.005097eb
lea ecx, [esp + 0x14]
push 0x55f120
lea edx, [esp + 0x40]
push ecx
push edx
call fcn.00509a80
mov eax, dword [eax]
lea ecx, [esp + 0x20]
push eax
mov byte [esp + 0x488], 0xb
call fcn.0050b659
lea ecx, [esp + 0x3c]
mov byte [esp + 0x484], 4
call fcn.005097eb
push 8
lea eax, [esp + 0x20]
push ebx
push eax
mov ecx, ebp
call fcn.00481580
push 1
push 0
lea ecx, [esp + 0x24]
mov byte [esp + 0x48c], 0xc
call fcn.0050246c
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x80]
push str._d_s_n
push eax
call fcn.004f0f4c
add esp, 0x10
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x24]
call fcn.0050b659
mov edx, dword [esi + 0x378]
lea ecx, [esp + 0x78]
mov eax, dword [edi + edx]
push eax
push 0x563f40
push ecx
call fcn.004f0f4c
add esp, 0xc
lea edx, [esp + 0x78]
lea ecx, [esp + 0x20]
push edx
call fcn.0050b659
mov eax, dword [esi + 0x378]
add eax, edi
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 4]
push ecx
push edx
lea eax, [esp + 0x80]
push str._d__d_n
push eax
call fcn.004f0f4c
add esp, 0x10
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x24]
call fcn.0050b659
mov edx, dword [esi + 0x378]
mov ecx, dword [edi + edx + 0x18]
lea eax, [edi + edx]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 8]
push ecx
push edx
push eax
lea ecx, [esp + 0x84]
push str._d__d__d_n_n
push ecx
call fcn.004f0f4c
add esp, 0x14
lea edx, [esp + 0x78]
lea ecx, [esp + 0x20]
push edx
call fcn.0050b659
lea ecx, [esp + 0x1c]
mov byte [esp + 0x484], 4
call fcn.005097eb
mov eax, dword [esi + 0xad0]
inc ebx
add edi, 0x1c
cmp ebx, eax
mov dword [esp + 0x18], edi
jl 0x4d25cf
pop ebp
lea ecx, [esp + 0x1c]
call fcn.0050b816
lea ecx, [esp + 0x10]
mov byte [esp + 0x480], 0
call fcn.005097eb
lea ecx, [esp + 0x1c]
mov dword [esp + 0x480], 0xffffffff
call fcn.0050b4a3
mov ecx, dword [esp + 0x478]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x478
ret